How does Facebook Messenger clear push notifications from the lock screen if you’ve read them on desktop?

See the Multitasking Enhancements and the silent push notifications in particular. Using the silent push you can notify your app that new content is available and also download that content and/or set the badge number for example without displaying the notification in the “Notification Center”. You’ll have to set the UIBackgroundModes with the remote-notification value … Read more

iOS sending push with APNs Auth Key: suddenly “403 Forbidden: {“reason”:”InvalidProviderToken”}”

we have exactly the same problem when sending pushes to different team ids using the same connection. The steps to reproduce are: Open a connection to APNS and use the same connection to: Send a token based push to topic com.companyA.xxx of team id 1234: APNS accepts and delivers the push successfully. Send a token … Read more

Callback Method if user declines Push Notification Prompt?

In iOS 7, when the system’s push notification prompt appears, the app becomes inactive and UIApplicationWillResignActiveNotification fires. Similarly when the user responds to the prompt (pressing either Yes or No), the app becomes active again and UIApplicationDidBecomeActiveNotification fires. So you can listen for this notification, and then hide your loading screen. Note: While the prompt … Read more

Push Notification vs. Web Sockets for implementing a real-time chat app?

APNS is not 100% reliable. It is in most cases, but not 100%. It is also not as quick as a dedicated service you would offer. Sometimes, push messages take upwards of one minute to arrive. You need to consider these and take it into consideration in any design you come up with. If you … Read more

APNS (Apple Push Notification Service) reliability

APNS is based on Apple Servers, and Apple doesn’t give any guarantee on successful message delivery. If the app is open (i.e. the user is using the app) while the notification arrives, iOS doesn’t show a notification message, you need to handle it. Notification shows up only when the app is backgrounded or killed. Also … Read more

App rejected because of “Missing Push Notification Entitlement”

Open your Provisioning Profile in any Text Editor and search for “environment”. You should find: aps-environment If you don’t see aps-environment in your provisioning profile, there is an issue in your Apple provisioning certificate. If you created a certificate without push notifications, and then later on you added Push Notification service, Apple DOESN’T update your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)