Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B B4S-Android-SDK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Francois Reboursier
  • B4S-Android-SDK
  • Wiki
  • Installation with Eclipse Ant

Installation with Eclipse Ant · Changes

Page history
Update push integration doc on use of <YOUR-PACKAGE-NAME> in the XML declaration authored Dec 14, 2015 by Eric Kok's avatar Eric Kok
Hide whitespace changes
Inline Side-by-side
Installation-with-Eclipse-Ant.md
View page @ b0bddec0
......@@ -95,10 +95,13 @@ If you use the push messaging feature of the B4S SDK, also add the push services
```xml
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="com.ezeeworld.b4s.android.sdk.gcm.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<permission
android:name="<YOUR-PACKAGE-NAME>.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="<YOUR-PACKAGE-NAME>.permission.C2D_MESSAGE" />
```
and in the `<application>` tag the push services registration:
Note that you have to explicitly use your app's package name in the permission name, so replace `<YOUR-PACKAGE-NAME>`. Next, in the `<application>` tag the push services registration:
```xml
<!-- Push messaging -->
......@@ -108,7 +111,7 @@ and in the `<application>` tag the push services registration:
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.ezeeworld.b4s.android.sdk.gcm" />
<category android:name="<YOUR-PACKAGE-NAME>" />
</intent-filter>
</receiver>
......@@ -128,6 +131,8 @@ and in the `<application>` tag the push services registration:
</service>
```
Again, note the `<YOUR-PACKAGE-NAME>` in the `GcmReceiver` intent filter category, which you have to replace with your app's package name.
## Example
For a fully defined example, please see [the `sample-eclipse` project's `AndroidManifest.xml`](https://github.com/ezeeworld/B4S-Android-SDK/blob/master/sample-eclipse/AndroidManifest.xml).
......
Clone repository
  • Home
  • Installation with Eclipse Ant
  • Installation with Gradle
  • Integration guide
  • Migration guide