Taylohtio/MobileBackend
Vladimir Khaidanov 6de73c33b8 init 2024-06-08 21:54:08 +03:00
..
DeepLinks init 2024-06-08 21:54:08 +03:00
MobileBackend init 2024-06-08 21:54:08 +03:00
PowerShell init 2024-06-08 21:54:08 +03:00
MobileBackend.sln init 2024-06-08 21:54:08 +03:00
readme.txt init 2024-06-08 21:54:08 +03:00

readme.txt

1. Run script.sql on MDb database

2. Create new project on https://console.firebase.google.com
2.1. Go to Project settings > Cloud messaging > Server key > copy
2.2. Go to Azure portal > Notifications hubs > notification hub > Google > API key > insert value of Server key copied on prev step

3. Configure Apple APNS using Token authentication mode (ask mobile team for assistance)

4. Install 2 following assemblies from project output to the GAC manually:
Newtonsoft.Json.dll
Microsoft.Azure.NotificationHubs.dll

5. Create notification hubs for all apps (own notification hub for each app) using ~/PowerShell/CreateNotificationHub.cmd script. It has the following parameters:
- googleApiKey
- appleBundleId
- appleTeamId
- appleKeyId
- appleToken
All these parameters except "appleBundleId" are the same for all apps and can be copied from any existent hubs. Param "appleBundleId" is unique for each app.

Note: it is important to create all notification hubs in the same namespace (payment is done per namespace. Each new namespace will be payed separately).
Mentioned script will create all hubs in the same namespace.

6. For each hub: insert hub name, connection string (Access policies > DefaultFullSharedAccessSignature) and pmc id (see Excel file with all mobile apps)
into mdb_PushNotifications_Hubs table in MDb