我剛剛將最新的PhoneGap版本發佈到應用商店,現在當我下載它時,它無法加載,只顯示啓動畫面和微調。我不知道如何收集錯誤,除了在控制檯打開的情況下運行它。組織者下也沒有崩潰日誌。應用商店發佈失敗加載
我也檢查了權利和APPS環境是在生產。
的唯一錯誤是這樣的,我想不通這是什麼意思:The 'Passive' connection 'MYAPP' access to protected services is denied.
我收集了所有的證書(我希望)和推送通知對開發中心的應用程序ID啓用。一切工作正常我的本地構建。
有從控制檯上啓動:(taken from this post:)
:Apr 3 17:38:42 Adams-iPhone kernel[0] <Debug>: launchd[3035] Container: /private/var/mobile/Applications/D79CBF76-D2DE-49E2-8021-BDA8EFB7EC0E (sandbox)
Apr 3 17:38:42 Adams-iPhone backboardd[31] <Error>: HID: The 'Passive' connection 'MYAPP' access to protected services is denied.
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Multi-tasking -> Device: YES, App: YES
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Unlimited access to network resources
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][splashscreen] 10.690987ms
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][splashscreen] 0.021994ms
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: [CDVTimer][TotalPluginStartup] 12.279987ms
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.812325]: Client itunesstored set type to normal application
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.812654]: BG Application: Not Present, BG Daemon: Present. Daemons: networkd sharingd SiriViewService apsd lockdownd assistantd
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Resetting plugins due to page load.
Apr 3 17:38:42 Adams-iPhone wifid[40] <Notice>: WiFi:[418264722.892555]: WiFi unquiescing requested by "locationd"
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: appDel.globalToken :<123 456 token here 789>
Apr 3 17:38:42 Adams-iPhone MYAPP[3035] <Warning>: Finished load of: file:///var/mobile/Applications/D79CBF76-D2DE-49E2-8021-BDA8EFB7EC0E/MYAPP.app/www/index.html
暫停在文本流,應用程序啓動畫面只是紡紗
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note) mstreamd: Not monitoring for external power.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note) PS: Media stream daemon stopping.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Note) AS: <MSIOSAlbumSharingDaemon: 0x14c6213d0>: Shared Streams daemon has shut down.
Apr 3 17:38:52 Adams-iPhone mstreamd[3033] <Notice>: (Warn) mstreamd: mstreamd shutting down.
Apr 3 17:38:52 Adams-iPhone mstreamd[3037] <Notice>: (Note) mstreamd: mstreamd starting up.
Apr 3 17:38:52 Adams-iPhone mstreamd[3037] <Notice>: (Note) PS: Media stream daemon starting...
Apr 3 17:38:56 Adams-iPhone wifid[40] <Notice>: WiFi:[418264736.223622]: WiFi unquiescing requested by "locationd"
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note) mstreamd: Not monitoring for external power.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note) PS: Media stream daemon stopping.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Note) AS: <MSIOSAlbumSharingDaemon: 0x13ce433b0>: Shared Streams daemon has shut down.
Apr 3 17:39:32 Adams-iPhone mstreamd[3037] <Notice>: (Warn) mstreamd: mstreamd shutting down.
Apr 3 17:39:32 Adams-iPhone mstreamd[3038] <Notice>: (Note) mstreamd: mstreamd starting up.
Apr 3 17:39:32 Adams-iPhone mstreamd[3038] <Notice>: (Note) PS: Media stream daemon starting...
Apr 3 17:39:46 Adams-iPhone wifid[40] <Notice>: WiFi:[418264786.075727]: WiFi unquiescing requested by "locationd"
Apr 3 17:39:57 Adams-iPhone wifid[40] <Notice>: WiFi:[418264797.335924]: WiFi unquiescing requested by "locationd"
從增加的推動也有一些差異列表
platforms/ios/Blonk/Classes/AppDelegate.m
@synthesize globalToken = _globalToken;
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
// Let the device know we want to receive push notifications
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
CGRect screenBounds = [[UIScreen mainScreen] bounds];
#if __has_feature(objc_arc)
@@ -87,10 +94,28 @
// TODO dump device token to console
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
// NSLog(@"My token is: %@", deviceToken);
_globalToken = deviceToken;
// NSString* jsString = [NSString stringWithFormat:@"alert('push:ios %@')", deviceToken];
// [self.viewController.webView stringByEvaluatingJavaScriptFromString:jsString];
}
// Dump error message
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
{
NSLog(@"Failed to get token, error: %@", error);
}
platforms/ios/Blonk/Classes/MainViewController.m
#import "AppDelegate.h"
AppDelegate * appDel = (AppDelegate *) [[UIApplication sharedApplication] delegate];
NSLog(@"appDel.globalToken :%@", appDel.globalToken);
NSString* jsString = [NSString stringWithFormat:@"__IOS_TOKEN__ = '%@';", appDel.globalToken];
[theWebView stringByEvaluatingJavaScriptFromString:jsString];