希望有人可以帮助我解决一些棘手的问题。
关键是我有一个基于 appcelerator 的应用程序,它结合了 Appcelerator 云服务的推送通知服务。当用户手动启动应用程序时一切正常,即使它进入后台,它也会收到通知。
但是,如果手机重新启动,将不再收到通知。
我不确定这是一个明显的问题还是什么,所以我会发布它。如果您需要任何其他信息,请索取!
非常感谢,
哈维尔
显现
<?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 by 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>