Dev*_*per 3 iphone device token
在我的iphone应用程序中,我想要使用APN的设备令牌.如何使用代码?
Alos我想要有关设备用户,其版本和其他信息的其他信息.如何使用Code获得它?
是否可以使用设备令牌获取设备的其他信息?
设备令牌的格式是什么?
请通过代码或任何链接或任何其他方式提供解决方案,这将不胜感激.
谢谢,
Mishal Shah
zap*_*aph 14
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeAlert ];
}
// Delegation methods
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(@"didRegisterForRemoteNotificationsWithDeviceToken: %@", deviceToken);
}
Run Code Online (Sandbox Code Playgroud)
在这里你如何获得有关设备的信息---
NSString* deviceName= [[UIDevice currentDevice] uniqueIdentifier];
NSString* localizedModel=[[UIDevice currentDevice] localizedModel];
NSString* systemVersion=[[UIDevice currentDevice] systemVersion];
NSString* systemName=[[UIDevice currentDevice] systemName];
NSString* model=[[UIDevice currentDevice] model];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13768 次 |
| 最近记录: |