Push notifications
Upload your Apple and Google keys under Push notifications › Settings, and give BeeAppie the device's token. Replies in support chat are then pushed automatically, and you can send your own.
In your app, with the SDK
// MAUI on iOS, Android and Mac: dotnet add package BeeAppie.Maui.Push
// (+ google-services.json, and aps-environment in Entitlements.plist)
builder.UseBeeAppie("<app key>").UseBeeAppiePush();
// Avalonia, Uno or plain .NET on iOS/Android: dotnet add package BeeAppie.Mobile.Push
// (the same google-services.json and aps-environment), after BeeAppieMobile.Start:
BeeAppieMobilePush.Start();
// Taps: a support reply, or the screen chosen under "When tapped, open" (BeeAppie.Maui.UI)
BeeAppieSdk.Instance.PushNotificationOpened += async (_, e) =>
{
if (await PageFactory.GetPageForPushAsync(e) is { } page)
await Navigation.PushAsync(page);
// e.Data has your own values; e.Screen and e.ScreenId what BeeAppie would open
};
// Desktop apps (WPF, WinForms, WinUI…): not available yet.
// build.gradle.kts, with your google-services.json:
implementation("com.beeappie:beeappie-push:1.0.0")
// Then, after BeeAppie.start:
BeeAppiePush.start(this)
// Taps: a support reply, or the screen chosen under "When tapped, open"
BeeAppie.onPushOpened = { push -> BeeAppieUI.openPush(this, push) }
import BeeAppiePush // + the Push Notifications capability
BeeAppiePush.start()
// Taps: a support reply, or the screen chosen under "When tapped, open"
BeeAppieSDK.onPushOpened = { push in
if let destination = BeeAppieDestination(push: push) { BeeAppieUI.present(destination) }
}
// With firebase_messaging:
final token = Platform.isIOS
? await FirebaseMessaging.instance.getAPNSToken()
: await FirebaseMessaging.instance.getToken();
if (token != null) await BeeAppie.setPushToken(token);
FirebaseMessaging.onMessageOpenedApp
.listen((message) => BeeAppie.handlePushOpened(message.data));
// Taps: a support reply, or the screen chosen under "When tapped, open"
BeeAppie.onPushOpened = (push) => BeeAppie.openPush(push);
// With @react-native-firebase/messaging:
const token = Platform.OS === 'ios'
? await messaging().getAPNSToken()
: await messaging().getToken();
if (token) await BeeAppie.setPushToken(token);
messaging().onNotificationOpenedApp(
(message) => BeeAppie.handlePushOpened(message.data ?? {}));
// Taps: a support reply, or the screen chosen under "When tapped, open"
BeeAppie.onPushOpened = (push) => BeeAppie.openPush(push);
// With Firebase Cloud Messaging for Unity (or your push plugin):
// the FCM token on Android, the APNs token (hex) on iOS
BeeAppieSdk.SetPushToken(token);
BeeAppieSdk.HandlePushOpened(data); // when the player taps one
// No ready-made screens in Unity: open your own for "When tapped, open"
BeeAppieSdk.PushOpened += data =>
{
if (data.TryGetValue("beeappie_screen", out var screen)) // e.g. "poll"
OpenScreen(screen, data.GetValueOrDefault("beeappie_screen_id"));
};
Or with the HTTP API
PUT /v1/push/token
{ "token": "<FCM or APNs token>",
"platform": "Google",
"sandbox": false }
With the usual headers: your app key, and the user's token.
- Send your own from Push notifications, or from your server with a secret key (
POST /v1/manage/push/notifications). When tapped, open picks a ready-made screen (an announcement, a poll, a leaderboard…), which the lines above open; your own data values reach the app too. - Release a poll with also send a push notification to bring users straight to it.
- Users can turn notifications off and on again: the ready-made Profile and privacy screen has the switch, or call
SetPushNotificationsEnabledAsync/setPushNotificationsEnabledfrom your own settings page. BeeAppie sends nothing to devices turned off in the app or blocked in the phone's settings, and they use none of your allowance. - Automatic (paid plans): rules that send by themselves, with no server of your own: to users away for some days, a while after an event your app tracks, or when someone beats their score on a leaderboard (
{player},{ranking}and{score}are filled in). Each user gets at most one automatic notification a day, or up to 10 if you choose.
Ready when you are
BeeAppie opens to new apps soon. Leave your email and we will tell you when you can sign up.
Join the waitlist SDKs and downloads