Troubles trying retrieving device

Comments

3 comments

  • Avatar
    Max Konev

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

  • Avatar
    Aguerrero

    [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

  • Avatar
    Max Konev

    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/

Please sign in to leave a comment.