1坡锡,自己啟動(dòng)(用戶手動(dòng)點(diǎn)擊啟動(dòng))
2埠褪,urlscheme啟動(dòng)(關(guān)于urlScheme的詳解點(diǎn)擊打開鏈接)
3岖妄,本地通知啟動(dòng)? (自己寫的本地通知啟動(dòng)切端,藍(lán)牙模塊的啟動(dòng)彻坛,地理圍欄的啟動(dòng))
4,遠(yuǎn)程通知啟動(dòng)??? (后臺(tái)服務(wù)器的推送通知)
- (BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
//?Override?point?for?customization?after?application?launch.
//用戶自己點(diǎn)擊啟動(dòng)
if(!launchOptions)
{
NSLog(@"用戶點(diǎn)擊app啟動(dòng)");
}
else
{
NSURL*url?=?[launchOptionsobjectForKey:UIApplicationLaunchOptionsURLKey];
//app?通過urlscheme啟動(dòng)
if(url)?{
NSLog(@"app?通過urlscheme啟動(dòng)?url?=?%@",url);
}
UILocalNotification*localNotification?=?[launchOptionsobjectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
//通過本地通知啟動(dòng)
if(localNotification)
{
NSLog(@"app?通過本地通知啟動(dòng)?localNotification?=?%@",localNotification);
}
NSDictionary*remoteCotificationDic?=?[launchOptionsobjectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
//遠(yuǎn)程通知啟動(dòng)
if(remoteCotificationDic)
{
NSLog(@"app?通過遠(yuǎn)程推送通知啟動(dòng)?remoteCotificationDic?=?%@",remoteCotificationDic);
}
}
returnYES;
}