IOS push notification break point - ios

I use phone-gap plugin for APN and xcode 5.
https://github.com/phonegap-build/PushPlugin
I put a breakpoint at each function in the plugin.
For some reason when i send a push notification not even single break point are hit.
But the notification received on my device.
Any explanation for this.
Thanks in advance.

There are some things you could check:
Did you set them in in xcode or in the safari debugger? Actually I am not sure if the first option would ever work at all. Have any breakpoints worked in your application?
Is the app running in the foreground when the notification is received? As far as I know, no code is executed on receiving the message if the app is running in the background, so this might also be a reason for not hitting any breakpoints.

Related

Notification when Xcode deploy will terminate the app?

When an app is attached to the Xcode debugger, none of the usual lifecycle methods (applicationWillResignActive:, applicationWillTerminate:, etc.) or notifications (UIApplicationWillTerminateNotification, etc) are triggered.
Is there any way for the app to know it's about to be stopped or re-deployed? Perhaps by trapping a signal?
Nope. For all intents and purposes, the STOP button in Xcode immediately terminates the application. There isn't a way to catch this.
applicationWillResignActive and applicationDidEnterBackground and their counterparts do get triggered when you press the home button on the device or simulator (or when you come back). I don't think you can catch the ones related to termination.

App not receiving VOIP after x time on iOS 10.3 >

I've got a project I'm working on which uses VOIP notifications to "wake up" apps that have been put into background/terminated. These notifications are sent periodically, and everything seemed to work fine until recent iOS updates.
It appears that after a certain amount of time in which the app has been in the background (happens to some users after 5 minutes, others after 20), the devices no longer process any code after receiving the voip notifications.
I've read a bit in apple dev forums and some other devs are running into similar issues, all speculate if its related to the new iOS updates (10.3.1/10.3.2).
Has anyone else run into this issue, and if so, have you been able to solve it?
Thanks!
This is the new normal on latest iOS versions.
You should begin to use push notifications.
Here is a guide from Apple.
What ended up seeming to be the fix was updating to a newer version of socketio library.
You can try debugging your app in background or in kill state ( terminated state ), so you can get to know that payload from pushkit comes or not or possibly some crash at iOS code end.
Debug pushkit notification in terminated state
Put debug pointer on delegate methods
Go to edit scheme
Select run option then Launch -> Wait for executable to be launched
Send push kit payload from back end
Once you get payload on device
it will automatically invoke and debug pointer will invoke at delegate methods.
Refer

GCM push is not received on iPhone 7

My app uses GCM to send push notifications and it all worked great.
Recently, one of subdcribers bought iPhone 7 and wrote to me, that push notifications dont work.
I've checked the logs from GCM - message is sent correctly:
{"multicast_id":6854913573879465744,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1484614306664165%6a57bb166a57bb16"}]}
She does receive other notifications from facebook, viber, etc., so no trouble with network.
Notifications are enabled in general and for my app.
"Do not disturb" is off.
Other subscribers with iOS 10.2 successfully receive notifications on their iPhones 5/6.
Reinstalling the app didnt help. App successfully receives the token, but doesnt receive notifications after.
What else can I check? Thank you.
I think this is a common issue on iPhone7. Check it here. I guess you have done all the workarounds in the link given but still no luck to fix the issue. Maybe this thread might help. Suggested action is to make sure that on your project settings, under the Capabilities Tab, scroll down to Push Notifications and turn it to ON. This automatically generates an entitlements file that contains the key APS Environment.

Can't get rid of scheduled push notifications - iOS

I have a very silly problem, which I unfortunately don't really understand how to solve.
I'm trying to implement push notification to my iOS app (Swift). I did succeed to create scheduled push notifications, where I send a notification every minute, for test purposes. Now I don't seem to be able to remove this, even though I have removed the code related to it, and reinstalled the app on the device. The only thing working is to disable push notifications in Xcode, which I do not want to do. It seems like I have missed something fundamental about the concept.
I did use an APN Tester at first to send messages to the device, but I don't think that has to do with anything.
Silly question, but I hope someone could help me.
Thanks!
Use this to remove all local notification:
UIApplication.sharedApplication().cancelAllLocalNotifications()
Updating Lumialxk to be current as of Swift 4.0 using UNUserNotificationCenter
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()

IOS9 Push notifications dialog appears after delete and launch app with xCode7

I have an application, it uses APNS, so I have code that subscribes to notifications, and everything works fine. But every time I reinstall app, and run it with xcode, I get allow push notification dialog. Every time.
I found hundreds questions about how to achieve this dialog again, but none - how to stop achieving them. I need help!
It's seems known IOS9 bug, here is a link for developer forum and still no response from apple and no solution:

Resources