push-notification
Handling Push Notifications when App is Terminated
1) When application is running in background and When application is running in foreground application:didReceiveRemoteNotification: method will called as below. – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { if (application.applicationState == UIApplicationStateInactive) { // opened from a push notification when the app was on background NSLog(@”userInfo->%@”, [userInfo objectForKey:@”aps”]); } else if(application.applicationState == UIApplicationStateActive) { // a push … Read more
firebase_messaging onResume and onLaunch not working
lost my 2 days to fix this issue, it may helpful for you. notification tag only for showing notification. you can access only data content on onResume/onLaunch. If you want handle notification message inside onResume/onLaunch add those messages in data tag also, Then you can do what ever you want. refer more detail on this … Read more
Scheduled websocket push with Springboot
Before starting, make sure that you have the websocket dependencies in your pom.xml. For instance, the most important one: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>${org.springframework-version}</version> </dependency> Then, you need to have your configuration in place. I suggest you start with simple broker. @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint(“/portfolio”).withSockJS(); … Read more
Changing password on p12 file
No you cannot do so without ramifications. Exporting PKCS#12 contents with openssl will lose information which won’t be restored upon re-creation of the PKCS#12. Whether that metadata is important to you will depend on your PKCS#12 contents and your use-case. There does not seem to be a way of simply “changing the password of the … Read more
Play local notification default sound when displaying UIAlertView?
Good question. Ideally, there would be a way of selecting a system sound using AudioServices. However, the following statement from Apple’s “System Sound Services Reference” suggests otherwise: In Mac OS X, when a user has configured System Preferences to flash the screen for alerts, or if sound cannot be rendered, calling this function will result … Read more