Pushwoosh Android manifest 文件验证



目前我正在将pushwoosh与Native Android应用程序集成。

我添加了以下接收器

 <receiver
            android:name="com.google.android.gcm.GCMBroadcastReceiver"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="MY_PROJECT_PACKAGE" />
            </intent-filter>
        </receiver>

我已将MY_PROJECT_PACKAGE值替换为项目的包名。仍然是显示清单文件错过接收器的错误验证。

嗨,

这里是安卓清单的清单

第一个权限

<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<permission android:name="com.test.app.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.test.app.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

第二届活动、服务和接收者

<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
    <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize">
        <intent-filter android:label="@string/launcher_name">
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <action android:name="com.test.app.MESSAGE" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <!-- **** check from here **** -->
    <activity android:name="com.arellomobile.android.push.PushWebview" />
    <activity android:name="com.arellomobile.android.push.MessageActivity" />
    <activity android:name="com.arellomobile.android.push.PushHandlerActivity" />
    <activity android:label="@string/app_name" android:name="com.facebook.LoginActivity" />
    <receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
            <category android:name="com.test.app" />
        </intent-filter>
    </receiver>
    <service android:name="com.arellomobile.android.push.PushGCMIntentService" />
    <service android:name="com.arellomobile.android.push.GeoLocationService" />
    <receiver android:name="com.arellomobile.android.push.AlarmReceiver" />
    <!-- **** if you are using iBeacons else not needed **** -->
    <service android:enabled="true" android:exported="true" android:isolatedProcess="false" android:label="iBeacon" android:name="com.radiusnetworks.ibeacon.service.IBeaconService" />
    <service android:enabled="true" android:name="com.radiusnetworks.ibeacon.IBeaconIntentProcessor" />
    <service android:name="com.arellomobile.android.push.PushBeaconService" />
</application>

> MY_PROJECT_PACKAGE通常是项目的捆绑名称(applicationId),如果您使用的是 gradle,您可以从build.gradle(Module:app)获取。

 defaultConfig {
        applicationId "com.xxxx.xxxx"  //<-package name here
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    } 

如果是 maven,请参阅https://spring.io/guides/gs/maven-android/

我猜它在根标签中<groupId>

相关内容

  • 没有找到相关文章

最新更新