Kom ihåg mig?
Home Menu

Menu


PhoneGap och Urban Airship IOS

Ämnesverktyg Visningsalternativ
Oläst 2012-11-13, 11:40 #1
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
Standard PhoneGap och Urban Airship IOS

Hej, jag försöker få in Urban Airship för att skicka push notification, men jag har letat i timmar efter någon lösning på vad för fel jag gör. Jag har läst Urban Airships tutorial samt laddat ner deras exempel från gtihub men inget har hjälpt. Någon som vet något mer eller kan hjälpa?
SweLogan är inte uppkopplad   Svara med citatSvara med citat
Oläst 2012-11-13, 20:34 #2
Linuus Linuus är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Jan 2009
Inlägg: 890
Linuus Linuus är inte uppkopplad
Mycket flitig postare
 
Reg.datum: Jan 2009
Inlägg: 890
Citat:
Ursprungligen postat av SweLogan Visa inlägg
Hej, jag försöker få in Urban Airship för att skicka push notification, men jag har letat i timmar efter någon lösning på vad för fel jag gör. Jag har läst Urban Airships tutorial samt laddat ner deras exempel från gtihub men inget har hjälpt. Någon som vet något mer eller kan hjälpa?
Till att börja med, vad får du för fel?? Vad är det som inte fungerar?

Du måste ge mycket mer information för att någon ska kunna hjälpa dig på ett bra sätt

Du har läst dokumentationen?
https://docs.urbanairship.com/displa...%3A+iOS+Plugin
Linuus är inte uppkopplad   Svara med citatSvara med citat
Oläst 2012-11-14, 10:12 #3
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
Ja det är väll lite det som är problemet. Jag får inga fel och kollar jag på urban airship så ser jag att det inte finns några devices registrerade...

Jag har gått i genom deras anvisningar 3-4 ggr nu samt skapat helt toma projekt.

Så det var mera om någon visste att de hade glömt något eller att "btw de har gjort en uppdatering på systemet förra veckan och att bla bla bla"
SweLogan är inte uppkopplad   Svara med citatSvara med citat
Oläst 2012-11-14, 11:32 #4
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
SweLogan SweLogan är inte uppkopplad
Medlem
 
Reg.datum: Sep 2007
Inlägg: 148
Nu har jag kommit en bit på vägen.
Det ser ut som den kan prata med Urban Airship då den hämtar informationen jag har sparat. Samt ser i consolen när jag skickar ny information.

MEN jag har inga devises när jag är inne på kontrollpanelen....


Får följande svar i consolen:
2012-11-14 11:28:35.766 UAPhonegapSample[2261:907] Multi-tasking -> Device: YES, App: YES
2012-11-14 11:28:36.039 UAPhonegapSample[2261:907] Application windows are expected to have a root view controller at the end of application launch
2012-11-14 11:28:39.585 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"wifi","keepCallback":fal se}
2012-11-14 11:28:39.587 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('NetworkStatus0',{"status" :1,"message":"wifi","keepCallback":false});
2012-11-14 11:28:39.602 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":{"name":"Kristers iPhone","uuid":"XXXX","platform":"iPhone","version ":"6.0.1","cordova":"2.0.0"},"keepCallback":fa lse}
2012-11-14 11:28:39.604 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('Device1',{"status":1,"mes sage":{"name":"Kristers iPhone","uuid":"XXXX","platform":"iPhone","version ":"6.0.1","cordova":"2.0.0"},"keepCallback":false} );
2012-11-14 11:28:40.433 UAPhonegapSample[2261:907] [M] => +[UAirship takeOff:] [Line 229] App Key: XXXXX
2012-11-14 11:28:40.436 UAPhonegapSample[2261:907] [M] => +[UAirship takeOff:] [Line 230] App Secret: XXXXX
2012-11-14 11:28:40.439 UAPhonegapSample[2261:907] [M] => +[UAirship takeOff:] [Line 231] Server: https://device-api.urbanairship.com
2012-11-14 11:28:40.494 UAPhonegapSample[2261:907] [M] => -[UAirship configureUserAgent] [Line 349] Setting User-Agent for UA requests to UAPhonegapSample 1.0 (iPhone; iPhone OS 6.0.1; UALib 1.3.3; 0DJN4LxsRY64o1GrpwILdg; sv_SE)
2012-11-14 11:28:40.506 UAPhonegapSample[2261:907] [M] => -[UAAnalytics initWithOptions:] [Line 105] Analytics logging not enabled
2012-11-14 11:28:40.550 UAPhonegapSample[2261:907] Reachability Flag Status: -R -----l- networkStatusForFlags
2012-11-14 11:28:40.604 UAPhonegapSample[2261:907] [M] => -[UAUser migrateUser] [Line 187] Migrating User Info: {
UAUserRecoveryKey = 0;
UAUserRecoveryKeySent = 0;
UAUserTagsKey = (
);
UAUserUrlKey = "https://device-api.urbanairship.com/api/user/RSwthrECQk-Xm0DYsCoqXA/";
}
2012-11-14 11:28:40.656 UAPhonegapSample[2261:907] [M] => -[UAUser loadUser] [Line 268] User Info: {
UAUserRecoveryKey = 0;
UAUserRecoveryKeySent = 0;
UAUserTagsKey = (
);
UAUserUrlKey = "https://device-api.urbanairship.com/api/user/RSwthrECQk-Xm0DYsCoqXA/";
}
2012-11-14 11:28:40.670 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":{"message":"","extras":{}}," keepCallback":false}
2012-11-14 11:28:40.673 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin2', {"status":1,"message":{"message":"","extras":{}}," keepCallback":false});
2012-11-14 11:28:40.680 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":1,"keepCallback":false}
2012-11-14 11:28:40.683 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin3', {"status":1,"message":1,"keepCallback":false});
2012-11-14 11:28:40.705 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":1,"keepCallback":false}
2012-11-14 11:28:40.710 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin4', {"status":1,"message":1,"keepCallback":false});
2012-11-14 11:28:40.733 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":1,"keepCallback":false}
2012-11-14 11:28:40.739 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin5', {"status":1,"message":1,"keepCallback":false});
2012-11-14 11:28:40.763 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"","keepCallback":false}
2012-11-14 11:28:40.765 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin6', {"status":1,"message":"","keepCallback":false}) ;
2012-11-14 11:28:40.768 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"Woot","keepCallback":fal se}
2012-11-14 11:28:40.771 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin7', {"status":1,"message":"Woot","keepCallback":false} );
2012-11-14 11:28:40.779 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":{"tags":["Iphone"]},"keepCallback":false}
2012-11-14 11:28:40.783 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin8', {"status":1,"message":{"tags":["Iphone"]},"keepCallback":false});
2012-11-14 11:28:40.798 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":{"endHour":0,"startHour":0," startMinute":0,"endMinute":0},"keepCallback":false }
2012-11-14 11:28:40.801 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin9', {"status":1,"message":{"endHour":0,"startHour":0," startMinute":0,"endMinute":0},"keepCallback":false });
2012-11-14 11:28:40.809 UAPhonegapSample[2261:907] [M] => -[PushNotificationPlugin registerForNotificationTypes:withDict:] [Line 231] PushNotificationPlugin: register for notification types
2012-11-14 11:28:40.811 UAPhonegapSample[2261:907] [M] => -[PushNotificationPlugin registerForNotificationTypes:withDict:] [Line 239] bitmask value: 7
2012-11-14 11:28:40.826 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"OK","keepCallback":false }
2012-11-14 11:28:40.829 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin10' ,{"status":1,"message":"OK","keepCallback":false}) ;
2012-11-14 11:28:40.835 UAPhonegapSample[2261:907] [INFO] No incoming message
2012-11-14 11:28:40.863 UAPhonegapSample[2261:907] [M] => -[UAPush updateRegistration] [Line 583] Checking registration state
2012-11-14 11:28:40.887 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"OK","keepCallback":false }
2012-11-14 11:28:40.889 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin11' ,{"status":1,"message":"OK","keepCallback":false}) ;
2012-11-14 11:28:40.894 UAPhonegapSample[2261:907] [M] => -[UAPush updateRegistration] [Line 583] Checking registration state
2012-11-14 11:28:40.914 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"OK","keepCallback":false }
2012-11-14 11:28:40.916 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin12' ,{"status":1,"message":"OK","keepCallback":false}) ;
2012-11-14 11:28:40.920 UAPhonegapSample[2261:907] PluginResult:toJSONString - {"status":1,"message":"OK","keepCallback":false }
2012-11-14 11:28:40.926 UAPhonegapSample[2261:907] PluginResult toSuccessCallbackString: cordova.callbackSuccess('PushNotificationPlugin13' ,{"status":1,"message":"OK","keepCallback":false}) ;
2012-11-14 11:28:40.930 UAPhonegapSample[2261:907] [INFO] Got alias: Woot
2012-11-14 11:28:40.935 UAPhonegapSample[2261:907] [M] => -[UAUser listenForDeviceTokenReg] [Line 969] ListenForDeviceTokenReg
2012-11-14 11:28:41.365 UAPhonegapSample[2261:907] [M] => -[PushNotificationPlugin application:didFailToRegisterForRemoteNotification sWithError:] [Line 541] PushNotificationPlugin: Failed To Register For Remote Notifications With Error: Error Domain=NSCocoaErrorDomain Code=3000 "ingen giltig aps-environment-behörighetssträng hittades för programmet" UserInfo=0x2df2d0 {NSLocalizedDescription=ingen giltig aps-environment-behörighetssträng hittades för programmet}
2012-11-14 11:28:41.381 UAPhonegapSample[2261:907] [M] => -[PushNotificationPlugin raiseRegistration:withpushID:] [Line 225] js callback: window.pushNotification.registrationCallback({"val id":false,"pushID":""});
2012-11-14 11:28:55.630 UAPhonegapSample[2261:907] [M] => +[UAKeychainUtils getDeviceID] [Line 269] Retrieved device id info from keychain.
2012-11-14 11:28:55.632 UAPhonegapSample[2261:907] [M] => +[UAKeychainUtils getDeviceID] [Line 273] Device ID result is not nil.
2012-11-14 11:28:55.634 UAPhonegapSample[2261:907] [M] => +[UAKeychainUtils getDeviceID] [Line 282] Loaded Device ID: FFA216C8-203E-4C26-B945-476121C4C9F7
2012-11-14 11:28:55.637 UAPhonegapSample[2261:907] [M] => +[UAKeychainUtils getDeviceID] [Line 283] Loaded Model Name: iPhone3,1
2012-11-14 11:28:56.263 UAPhonegapSample[2261:907] [M] => -[UAAnalytics requestDidSucceed:response:responseData:] [Line 467] Analytics data sent successfully. Status: 200
SweLogan är inte uppkopplad   Svara med citatSvara med citat
Svara


Aktiva användare som för närvarande tittar på det här ämnet: 1 (0 medlemmar och 1 gäster)
 

Regler för att posta
Du får inte posta nya ämnen
Du får inte posta svar
Du får inte posta bifogade filer
Du får inte redigera dina inlägg

BB-kod är
Smilies är
[IMG]-kod är
HTML-kod är av

Forumhopp


Alla tider är GMT +2. Klockan är nu 00:31.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson
 
Copyright © 2017