WebSockets Energy Consumption

Pure WebSockets/TCP sockets solution (without ping-pong packets) in idle state doesn’t even detect a connection loss because it doesn’t send any data. Once handshake has occured, it assumes that connection is established until something closes the socket or sender will attempt to send some data and it is detected that there is no connection anymore … Read more

Is Silent Remote Notifications possible if user has disabled push for the app?

Short answer, yes The exciting new opportunity for app developers in iOS 8 is that Apple will now deliver “silent” pushes even if the user has opted out of notifications. Also, “silent push” is no longer just for Newsstand apps. Every app can take advantage of this ability to refresh content in the background, creating … Read more

How to get back “Allow Push Notifications” dialog after it was dismissed once?

Here’s how Apple say you can do it: Resetting the Push Notifications Permissions Alert on iOS The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device … Read more

didReceiveRemoteNotification: fetchCompletionHandler: open from icon vs push notification

Ok I figured it out. The method is actually called twice (once when it receives the push, and once when the user interacts with the icon or the notification). – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { if(application.applicationState == UIApplicationStateInactive) { NSLog(@”Inactive”); //Show the view with the content of the push completionHandler(UIBackgroundFetchResultNewData); } else if … Read more

Flutter: Push notifications even if the app is closed

For reminders i would recomend Flutter Local Notifications Plugin. It has a powerful scheduling api. From the documentation of local notification: Scheduling when notifications should appear – Periodically show a notification (interval-based) – Schedule a notification to be shown daily at a specified time – Schedule a notification to be shown weekly on a specified … Read more

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