IOS - qiosapplicationdelegate.h linking problem in QtCreator
-
Hi. It worked in all three cases for me. The only time I could reproduce the issue you mentioned was when I launched the app from XCode and then closed it manually on the device. An error was thrown on XCode and the app was like suspended. In that case indeed it felt like the device was frozen, but it was so just because XCode was holding the app.
-
Thanks for your test.
You are right, I closed manually the app. I didn't know that xcode or qt holds the app.
Now everything looks great. I just need to check if the third case code is working, I have something like that :- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if (launchOptions != nil) { NSDictionary* notif = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; if (notif) { NSString* type_n = [notif valueForKey:@"gcm.notification.type"]; if (type_n) { std::string* type = new std::string([type_n UTF8String]); MyNotif::setExtraType(type); } } } ... }
-
Hi. I don't think you need to check for the notification type, because there will be no other one. Anyway, be careful, because didFinishLaunchingWithOptions will run before your main() from Qt. It means that even QApplication won't be available by then.