How to debug push notifications for IOS? - javascript

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

Related

Ionic Cordova Run Browser give device permissions

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?

React native app build success, but nothing displayed

I successfully run the react-native app and emulator also opended.
I'm also getting emulator loading message too
However After that it crashes and nothing display
And I'm getting an error when reload the bundle as below
I'm unable to figure out the issue since I'm a react-native beginner.
Appreciate your suggestions
It seems your emulator not connected to your react-native development server. Sometimes it happen, devices connected and somehow it lost connection with the development server. Try running adb devices command on your terminal to check is your emulator available and detected.
I know this is old but maybe this will help someone else.
This could be happening due to several reasons.
Check emulator is working or if its storage is full? wipe the data.
Syntax error could be because of this. please recheck latest changes files.
Personally, I was stuck due to a small comma error in my code.

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.

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