Ionic Cordova Run Browser give device permissions - javascript

quick question.
I am currently working on an ionic application which I am testing using the comman 'ionic cordova run browser'. This works fine for most things, however when I try to upload an image to the application I get the following message
Permission Denied
Sorry, we don't have
permission to access your
device's images. Please check
the settings on your phone
and try again.
While I understand where this message comes from and why it appears, my question is how to I make it think that it has the required permissions when running on the browser?

Related

Not Receiving Push Notification when app is killed on android device

I am currently working with RN0.44 , everything working fine on emulator , however on physical android device i am only able to receive push notification (remote) when app is running or at least it is in background, but when i kill the app i am unable to receive notifications.
I have also checked the settings for my app but no luck.
I am using this package react-native-notifications
I have also raised an issue at github
Any help is appreciated.

How to debug push notifications for IOS?

I have setup ionic push for Android and IOS, the android version works great, but the IOS doesn't.
I have setup the provisioning and certificate files on IOS and they seem to be fine.
Also, the tokens get generated fine, and if i do a test with ionic push -s or CURL i can see the request going through with no errors that i can tell, just that the notifications don't show on the device.
I made the IOS package using the Phonegap Build service, not sure if that's an issue.
So, i guess my question is if there is a way for me to debug and figure out what went wrong.
Any ideas?
I also suffered a lot in push notification.
Finally i got some solution. it might be helpful for you
If u get device token from APNS server and notification send without any error but still you not getting notification in device then problem is in certificate.
Useful Links:
1) For Troubleshooting Push Notifications is here
2) Tutorial for generating generating certificate and send push notification is Here

Dropbox choose button return error message

I have developed an IOS app using PhoneGap and need to integrate Dropbox . I am using Cordova 3.1.0 under IOS 7.1.2 .
From my phonegap app I launch InAppBrowser and point it to my server page that has the js API for the chooser dropin, this launches fine and if the user is not logged into Dropbox they are asked to login as expected. Once logged in the users files are displayed, so I think everything is good with my app key etc.
The problem occurs when the user selects a file and clicks the choose button. I got the message: "Unable to close this window. Please close it manually and return to the previous site."
I was wondering if anyone else has experienced this issue, or has any advice for implementation.
(almost the same issue as :
Dropbox choose button does not return in ios8 - But with IOS7)
It appears to me that PhoneGap's InAppBrowser doesn't support window.close. It might be possible for you to inject some JavaScript via your app that provides an implementation for window.close, or you might need to use the native browser instead of an embedded one.

Very strange Parse.com app Error 100

I have a very strange problem with my Parse.com app.
First of all, here's the link: linksync.parseapp.com (I provide it here so you can view source code)
Everything was fine until now..
Recently I was unable to log in with my account from my Android phone. As I'm the owner of site, I changed my pass in Parse.com data browser and tried again. No luck! I tried logging via PC Browser - ok.
That's what I have for now:
When I log in from Android Browser - Login failed
When I try to register new account to my website from Android Browser - Error: 100 XMLHttpRequest failed: {}
When I try to log in from my Android app for this website - Login fail
BUT!
When I log in from another Android phone (either from Android browsers or my app) or from any PC, it works!
Looks like my phone is cursed :( I even tried reflashing ROM and updated in to different version, but still can't make this work.
Oh, and from my phone another app, that uses parse.com, doesn't work. It's just as if I'm banned with the only device.
Guys, what can I do to fix it? Any Parse.com devs here?
I had this too, didn't have a clue what caused the error.
Well, you know what?
It turned out that I had no network connection on my phone!
After turning on WIFI on y phone it just worked fine, of course.
Takeaway: it's probably a good idea to build a network connectivity check into your app. When it starts up and there is no connectivity you give a warning to the user and quit (or continue to run in 'offline' mode).

android can't see web service

I've written my first Android app (Sencha Touch + Phonegap using Eclipse on PC). It pulls some JSON from a WCF service. It works fine in the emulator.
I've now put it on my phone (Samsung GT-19100T running Gingerbread). The app runs but hangs when calling the service. The phone just shows the loading animation. The server shows no request has reached it. The phone can browse the net ok.
EDIT: I should add that the problem is not the server. I can browse to the same services ok on PC, and we have an iPhone app that works with it fine.
The only other strange thing I've noticed is that if I browse to the endpoint on iPhone or PC, I get the JSON text in the browser. If I try it on the android's browser it says "cannot download".
How do I go about diagnosing this?
Is there some sort of option on the phone?
found it. The answer is to SHOOT ME NOW.
the URL had been entered so long ago I forgot all about it, including little details like the fact that it used an internal ip address.
Total facepalm. No, that won't do it. Let's try a facedesk...

Categories