Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/100.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 城市飞艇可以';我没有得到充分的支持_Ios_Urbanairship.com - Fatal编程技术网

Ios 城市飞艇可以';我没有得到充分的支持

Ios 城市飞艇可以';我没有得到充分的支持,ios,urbanairship.com,Ios,Urbanairship.com,我在城市飞艇上遇到了一些问题,特别是在注册富推用户方面。我在AppDelegate //Create Airship options dictionary and add the required UIApplication launchOptions NSMutableDictionary *takeOffOptions = [NSMutableDictionary dictionary]; [takeOffOptions setValue:launchOptions forKey:UAirs

我在城市飞艇上遇到了一些问题,特别是在注册富推用户方面。我在
AppDelegate

//Create Airship options dictionary and add the required UIApplication launchOptions
NSMutableDictionary *takeOffOptions = [NSMutableDictionary dictionary];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];

[UAirship takeOff:takeOffOptions];
[[UAPush shared] resetBadge];

// Register for remote notfications with the UA Library. This call is required.
[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
                                                     UIRemoteNotificationTypeSound |
                                                     UIRemoteNotificationTypeAlert)];

- (void)application:(UIApplication *)application  didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
// Updates the device token and registers the token with UA.
NSString *myAlias = @"Your Alias";
[UAPush shared].alias = myAlias;    
[[UAPush shared] registerDeviceToken:deviceToken];
}
这允许我的代码在设备令牌下注册设备,并自动生成富推的用户。但是,别名和设备令牌没有传递给Rich Push用户,我怀疑这不允许UA向我的设备发送Rich Push down

我错过了什么?我查看了iOS推送的文档,得到了所有相同的代码。任何帮助都将不胜感激

更新:


因此,我创建了一个用户点击
/api/user-api
端点并强制使用别名/device\u令牌。然而,我的设备仍然没有得到丰富的推动。我转到
/api/user/user\u id
并验证了badge>0,所以城市飞艇正试图发送这些丰富的推送。有人知道它为什么会丢失吗?

在我看来,Rich push的文档记录非常糟糕。我自己对此感到困惑,并联系了UA支持部门。他们让我参考这里的inboxSample:

研究此示例是了解如何在iOS端实现富推送的一个良好开端

我还在这里找到了UA类的参考文档:

浏览每个UAInbox*类。文档还可以(不是很好)

我希望他们有一个关于如何实现富推送的概述文档,就像他们解释如何实现推送通知一样。我相信这会为很多开发者节省很多时间

贾德