How do I know when an xid is available after I register the deviceToken to the Xtify Manager?
I am doing this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
XLXtifyOptions *anXtifyOptions=[XLXtifyOptions getXtifyOptions];
[[XLappMgr get ]initilizeXoptions:anXtifyOptions];
[[XLappMgr get] launchWithOptions:application andOptions:launchOptions];
}
then
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken
{
[[XLappMgr get] registerWithXtify:devToken ];
}
and it is printing out the xid and other things to the console, but I need to get it in the app so I can register it with my own server (which will then use the push REST api to send messages to individual users).
I noticed that XLappMgr
has a -(NSString *)getXid;
method, but how do I know when I can call this? Is there a delegate method that gets called when it is available, or do I need to poll it?
Regards