[LQTracker configureAnonymousUserAccountWithUserInfo:nil profile:LQTrackerProfilePassive];
[LQSession application:application didFinishLaunchingWithOptions:launchOptions];
3.Added remote notification registering code as below:
NSLog(@"Registering for push notifications...");
[[UIApplication sharedApplication]registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound)];
4.Added notification handling methods that you mentioned in sample code to handle notification.
5.Created .p12 file and uploaded on Geoloqi application web site for created application.
6.It is registered for apple push notification and received device token in "didRegisterForRemoteNotificationsWithDeviceToken" method.
7.account/profile api called to get the anonymous user-id. after getting user id I am calling message/send api to check message push notification. I am getting following response for message/send APi.
{ devices = 0;
result = "no_devices_registered";
user = "_kJfzR1iiPgkJRhLb1";
"user_id" = SoS;
}
still did not received message push notification on iphone device.
Also done following for registering for push notification.
1.Called following method for push registration:
- (void)registerForPushNotifications {
[LQSession registerForPushNotificationsWithCallback:^(NSData *deviceToken, NSError *error) {
if(error){
NSLog(@"Failed to register for push tokens: %@", error);
} else {
NSLog(@"Got a push token! %@", deviceToken);
}
}];
}
2.Then called the message/send api, got following response:
{
devices = 1;
result = ok;
user = "_S3EVB1iiQCu6LqxYE";
"user_id" = Soe;
}
Still not getting push notification for the device.
Whats wrong with this????????????
It looks like you're new here. If you want to get involved, click one of these buttons!