hi im little stucked with a problem cuz im trying to register many devices in my application (Appcelerator Titanium) but its not working fine. When application is fired throws that "Couldnt retrieve device"

asked 20 Nov '14, 16:59
anfaguerrero's gravatar image

anfaguerrero
113

Could you paste some logs? So far I'm not sure what the problem is.

permanent link
answered 24 Nov '14, 06:50
shader's gravatar image

shader
3.9k7

[WARN] : linker: libstlport_shared.so has text relocations. This is wasting memory and is a security risk. Please fix. [WARN] : linker: libkroll-v8.so has text relocations. This is wasting memory and is a security risk. Please fix. [WARN] : linker: libtiverify.so has text relocations. This is wasting memory and is a security risk. Please fix. [WARN] : V8Object: (KrollRuntimeThread) [231,232] Runtime disposed, cannot set property 'userAgent' [WARN] : W/System.err: java.lang.IllegalStateException: Application does not define permission com.galgomedia.planvitalapp.permission.C2D_MESSAGE [WARN] : W/System.err: at com.google.android.gcm.GCMRegistrar.checkManifest(GCMRegistrar.java:126) [WARN] : W/System.err: at com.arellomobile.android.push.registrar.PushRegistrarGCM.checkDevice(PushRegistrarGCM.java:27) [WARN] : W/System.err: at com.arellomobile.android.push.PushManager.onStartup(PushManager.java:129) [WARN] : W/System.err: at com.arellomobile.android.push.PushManager.onStartup(PushManager.java:117) [WARN] : W/System.err: at com.arellomobile.push.PushnotificationsModule.pushNotificationsRegister(PushnotificationsModule.java:114) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:168) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:194) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:146) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [WARN] : Error to register{"error":"Failed to register for push notifications"} [WARN] : TiUIScrollView: (main) [3898,4040] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. [WARN] : TiUIScrollView: (main) [48,4088] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. [ERROR] : File: fail readDirectory() errno=2

permanent link
answered 24 Nov '14, 15:12
anfaguerrero's gravatar image

anfaguerrero
113

Did you use the latest plugin? Do you use custom AndroidManifest.xml?

It says that permission for push notifications is missing from the AndroidManifest.xml: com.galgomedia.planvitalapp.permission.C2D_MESSAGE

There are two ways of solving this:
1. Do not use custom AndroidManifest - the plugin should define all the permissions automatically.
2. Add permissions to AndroidManifest.xml as per step 6 of this guide:
https://www.pushwoosh.com/programming-push-notification/android/native-android-sdk-integration/

permanent link
answered 25 Nov '14, 11:08
shader's gravatar image

shader
3.9k7

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×447
×326
×30

question asked: 20 Nov '14, 16:59

question was seen: 1,798 times

last updated: 25 Nov '14, 11:08