android - Not receiving push notifications until app is started manually -


hope can me tricky problem have.

the point have appcelerator based app incorporates push notifications service of appcelerator cloud services. goes fine when user starts app manually, if goes background, receives notifications.

however, if phone restarted, notifications no longer received.

i'm not sure if manifest issue or what, post it. if need other information, request it!

thank much,

javier


manifest

<?xml version="1.0" encoding="utf-8"?> <ti:app xmlns:ti="http://ti.appcelerator.org"> <property name="acs-oauth-secret-production" type="string">xxxxx</property> <property name="acs-oauth-key-production" type="string">xxxxx</property> <property name="acs-api-key-production" type="string">xxxxx</property> <property name="acs-oauth-secret-development" type="string">xxxxx</property> <property name="acs-oauth-key-development" type="string">xxxxx</property> <property name="acs-api-key-development" type="string">xxxxx</property> <id>com.realzaragozasad.android</id> <name>realzaragoza</name> <version>7</version> <publisher>real zaragoza</publisher> <url>http://www.realzaragoza.com</url> <description>aplicación móvil del real zaragoza para android</description> <copyright>2013 real zaragoza</copyright> <icon>appicon.png</icon> <persistent-wifi>false</persistent-wifi> <prerendered-icon>false</prerendered-icon> <statusbar-style>default</statusbar-style> <statusbar-hidden>false</statusbar-hidden> <fullscreen>false</fullscreen> <navbar-hidden>false</navbar-hidden> <analytics>true</analytics> <property name="ti.ui.defaultunit" type="string">system</property> <iphone>     <orientations device="iphone">         <orientation>ti.ui.portrait</orientation>     </orientations>     <orientations device="ipad">         <orientation>ti.ui.portrait</orientation>         <orientation>ti.ui.upside_portrait</orientation>         <orientation>ti.ui.landscape_left</orientation>         <orientation>ti.ui.landscape_right</orientation>     </orientations> </iphone>     <android xmlns:android="http://schemas.android.com/apk/res/android">     <tool-api-level>8</tool-api-level>     <manifest android:installlocation="preferexternal"         android:versioncode="7" android:versionname="1.4">         <uses-permission android:name="android.permission.receive_boot_completed"/>         <uses-permission android:name="android.permission.read_phone_state"/>         <uses-permission android:name="android.permission.write_external_storage"/>         <uses-permission android:name="android.permission.bind_notification_listener_service"/>         <uses-permission android:name="android.permission.internet"/>         <uses-permission android:name="android.permission.vibrate"/>         <uses-permission android:name="android.permission.access_network_state"/>     </manifest>     <application>         <service android:name="com.appcelerator.cloud.push.pushservice"/>         <receiver android:name="com.appcelerator.cloud.push.pushbroadcastreceiver" >           <intent-filter>             <action android:name="android.intent.action.boot_completed" />             <action android:name="android.intent.action.user_present" />             <action android:name="com.appcelerator.cloud.push.pushservice.msg_arrival" />             <category android:name="android.intent.category.home" />           </intent-filter>           <meta-data              android:name="com.appcelerator.cloud.push.broadcastreceiver.arrivalactivity"             android:value="com.cocoafish.pushnotifications.arrivalactivity" />         </receiver>     </application> </android> <mobileweb>     <precache/>     <splash>         <enabled>true</enabled>         <inline-css-images>true</inline-css-images>     </splash>     <theme>default</theme> </mobileweb> <modules>     <module platform="commonjs">ti.cloud</module>     <module platform="android">ti.cloudpush</module> </modules> <deployment-targets>     <target device="blackberry">false</target>     <target device="android">true</target>     <target device="ipad">false</target>     <target device="iphone">false</target>     <target device="mobileweb">false</target>     <target device="tizen">false</target> </deployment-targets> <sdk-version>3.1.0.ga</sdk-version> </ti:app> 

i answer own question share knowledge solve this, maybe useful else.

in case, problem app installed in external storage (sd card) , prevented service listened notifications run when device rebooted.

hope helped someone!


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -