个推的推送:
http://docs.getui.com/pages/viewpage.action?pageId=589991
<!-- 服务放到单独的进程中 --> <service android:name="com.igexin.sdk.PushService" android:exported="true" android:label="NotificationCenter" android:process=":pushservice" > </service> <receiver android:name="com.igexin.sdk.PushReceiver" > <intent-filter> <!-- 开机广播 --> <action android:name="android.intent.action.BOOT_COMPLETED" /> <!-- 网络状态 --> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> <!-- 解锁 --> <action android:name="android.intent.action.USER_PRESENT" /> <action android:name="com.igexin.sdk.action.refreshls" /> </intent-filter> </receiver>
小米的推送:
<service android:name="com.xiaomi.push.service.XMPushService" android:enabled="true" android:process=":pushservice" /> <service android:name="com.xiaomi.mipush.sdk.PushMessageHandler" android:enabled="true" android:exported="true" /> <service android:name="com.xiaomi.mipush.sdk.MessageHandleService" android:enabled="true" /> <!-- 注:此service必须在2.2.5版本以后(包括2.2.5版本)加入 --> <receiver android:name="com.xiaomi.push.service.receivers.NetworkStatusReceiver" android:exported="true" > <intent-filter> <!-- 网络状态 --> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </receiver> <receiver android:name="com.xiaomi.push.service.receivers.PingReceiver" android:exported="false" android:process=":pushservice" > <intent-filter> <action android:name="com.xiaomi.push.PING_TIMER" /> </intent-filter> </receiver>
时间: 2024-10-17 23:19:14