Push Notification not working when app is open

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
Posts: 8
Joined: Wed Mar 19, 2014 1:00 pm

Push Notification not working when app is open

Post by za_mic » Mon Dec 18, 2017 1:59 pm

I have search high and low for an solution, but could not find one. I have a problem with push notifications. Push notifications are being send to the user's iOS device every time when the app is not open, but fails to be displayed on the device whenever the app is running, although the result of the push notification are successful.

I've played round with pushNotificationRegistered and pushNotificationReceived, but still the push notification are not displayed when the app is open.

Push notifications is selected in Requirements and Restrictions, and Apple Certificate is still valid. Using Livecode 8.1.6.

Please help, is it perhaps a iOS restriction?

VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 696
Joined: Fri Jun 27, 2008 9:00 pm

Re: Push Notification not working when app is open

Post by Mikey » Mon Dec 18, 2017 3:09 pm

There are a number of APNS-related issues. The one you are referring to is captured in QR10901. APNS needs effort for a lot of reasons. For example, silent push doesn’t work, either. Anyway, since you can’t receive a payload while the app is running, when you get the notification, you have to call home to pull the data in.

Some day this one will be fixed. It’s been 4-⅔ years.

Post Reply

Return to “iOS Deployment”