Skip to content

Commit

Permalink
pushnotifications v16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marchbold committed Dec 20, 2024
1 parent e12bc37 commit 31e7750
Show file tree
Hide file tree
Showing 70 changed files with 302 additions and 579 deletions.
99 changes: 20 additions & 79 deletions docs/pushnotifications/azure/azure-notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following should be added to your `extensions` node in your application desc



# Android
## Android


Azure uses FCM on Android (not on iOS), so you will need to go through the setup of Firebase for Android
Expand Down Expand Up @@ -139,17 +139,28 @@ Generally this is your AIR application id prefixed by `air.` unless you have spe
<permission android:name="APPLICATION_PACKAGE.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="APPLICATION_PACKAGE.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<!-- BADGE -->
<uses-permission android:name="com.sec.android.provider.badge.permission.READ" />
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" />
<uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT" />
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE" />
<uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE" />
<uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT" />
<uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE" />
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" />
<uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.READ_APP_BADGE" />
<uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS" />
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_READ" />
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_WRITE" />

<application>
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="false" />

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>


<!-- AZURE CLOUD MESSAGING -->
<service android:name="com.distriqt.extension.pushnotifications.azure.AzureInstanceIDService">
<intent-filter>
Expand Down Expand Up @@ -188,84 +199,14 @@ Generally this is your AIR application id prefixed by `air.` unless you have spe
</provider>



<!-- FIREBASE CORE -->
<!-- analytics -->
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.measurement.UPLOAD"/>
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.measurement.AppMeasurementService"
android:enabled="true"
android:exported="false"/>

<!-- common -->
<provider
android:authorities="APPLICATION_PACKAGE.firebaseinitprovider"
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:exported="false"
android:initOrder="100" />

<!-- iid -->
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
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="APPLICATION_PACKAGE" />
</intent-filter>
</receiver>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
android:exported="false" />
<service
android:name="com.google.firebase.iid.FirebaseInstanceIdService"
android:exported="true">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>



</application>

</manifest>
```

### MultiDex Applications

If you have a large application and are supporting Android 4.x then you will need to ensure you enable your application to correctly support MultiDex to allow the application to be broken up into smaller dex packages.

This is enabled by default with releases of AIR v25+, except in the Android 4.x case where you need to change the manifest additions for the application tag to match the following and use the `MultiDexApplication`.


#### Using AndroidX

This will require the addition of the `androidx.multidex` extension which contains the `androidx.multidex.MultiDexApplication` implementation.

```xml
<manifest android:installLocation="auto">
<!-- PERMISSIONS -->

<application android:name="androidx.multidex.MultiDexApplication">

<!-- ACTIVITIES / RECEIVERS / SERVICES -->

</application>
</manifest>
```




# iOS
## iOS

Azure uses APNS on iOS so you will have to go through the [setup process of APNS](../apple/apple-push-notification-service)
before using Azure.
Expand Down
18 changes: 18 additions & 0 deletions docs/pushnotifications/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
### 2024.12.20 [v16.0.0]

```
## Major update
In this update we have moved all the extensions to use the newer gradle dependencies process.
https://docs.airnativeextensions.com/docs/pushnotifications/migrating-to-v16.0
### Updates
feat(android): move to gradle dependencies (resolves https://github.com/distriqt/ANE-PushNotifications/issues/621, resolves https://github.com/distriqt/ANE-PushNotifications/issues/623)
feat(ios,fcm): update firebase messaging sdk to v11.5.0 (resolves https://github.com/distriqt/ANE-PushNotifications/issues/614, https://github.com/distriqt/ANE-PushNotifications/issues/620)
feat(android,fcm): add additional processing on notification data to better handle fcm properties
fix(ios,fcm): correct packaging of bundle required for certain in-app messages (resolves https://github.com/distriqt/ANE-PushNotifications/issues/618)
feat(onesignal): update sdk: android v5.1.26 iOS v5.2.9 (resolves https://github.com/distriqt/ANE-PushNotifications/issues/609)
```

### 2024.07.25 [v15.0.2]

```
Expand Down
Loading

0 comments on commit 31e7750

Please sign in to comment.