Support Center

Can Users Go Directly To The Chat Window When They Open a Push Notification

Last Updated: Dec 04, 2013 07:05PM EST
Sure. Append the following sample code:
 

// see if we launched from a Hipmob push notifications

    if([launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey]){

        // came from a push

        NSDictionary * userInfo = [launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey];

        if([@"com.hipmob.push.NEW_MESSAGE" isEqualToString:(NSString *)[userInfo valueForKey:@"action"]]){

            // this was a Hipmob push notification: load up the Hipmob view controller

        }

    }

To the end of this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Hope this helps - drop us an email with questions, at ayo@hipmob.com

https://cdn.desk.com/
false
hipmob
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete