Adding Firebase to a Wear OS and mobile app? - android

I have a Android Wear OS app which also have a mobile companion app. I've just added Firebase to the Wear app and it works well. Now I would like to add Firebase to the mobile app as well.
As Android Wear and mobile apps have the same package name how can I differ between the 2 when for example sending FCM notifications or for Firebase analytics?
If I send a FCM to the user segment using package name will the notification be sent to both the mobile device and the wear device? And would that be cause multiple notifications on the mobile device because of the notification bridging?

Related

Copy text on handheld via tap in wearos

I am trying to build an authenticator sort of android app with support for WearOS , what i want to accomplish is ->
from a list of TOTPs if the user taps on any one of them ON THE WEAROS app , i want the OTP to be copied on my android handheld ( even when the authenticator application is closed)
is this possible ?
You should be able to communicate from your Wear App to your paired Mobile app using the Message Client.
https://developers.google.com/android/reference/com/google/android/gms/wearable/WearableListenerService
Your authenticator mobile app will be woken up when the wear app sends a message, and then handle it as you want.
See here for more information about data syncing. https://developer.android.com/training/wearables/data/data-layer

Support Android App with One Signal Cordova Plugin SDK in Huawei App Gallery

I'm currently using onesignal-cordova-plugin v2.10.1 in my ionic android app for push notifications. Now we are planning to support the android app in Huawei App Gallery using the same One Signal push notifications. What I need to do specifically with this requirement?
In One Signal settings, configure Huawei Android (HMS) Configuration.
Can I still use one-signal-cordova-plugin or I have to use new plugin cordova-plugin-hms-push?
About Huawei Android(HMS) Configuration
Before you start developing an app, you must register as a Huawei developer and complete identity verification on HUAWEI Developers. Create an app in AppGallery Connect, and get the information about APP ID and APP SECRET.
The basic process is as follows:
1). Log in to the HUAWEI Developer official website and rgister as a developer.
2). Sign in to AppGallery Connect and click My apps.
3). Click New app on the right of the page.
4). Fill in the app information and click OK. The app information page is displayed.
You need to use HMS Cordova Push Plugin. Your app integrated with the Push SDK to obtain a push token, and sent the token to OneSignal SDK. OneSignal uses the token to send the messages to devices and the devices receive the messages.

Android mobile push notification to end user without installing the App

I am trying to build mobile marketing / campaign via Android smartphones and geofencing. Mobile Apps will be developed for certain customers.
Now i need to know if the end device has not installed our developed Mobile Apps still is it possible to send push notification or not at the end device.
Push notifications are app specific. If there is no app installed, then its notifications can not be shown too.

Can an app be build to send notification to non-app user

Is it possible to create an app that can send notification to the user who does not have the same app installed on his device.
I have come acrossed 'Push Notification' service via GCM and FCM but it requires the app being installed on both the devices to communicate or send notification.
(P.S- No suggestion for web application to user mobile service)
You can use other means of communication like SMS or email.
No. Notifications even though coming from Android Google servers are part of the app environment. So you cannot send an app notification to non app users. If that was the case imagine getting app notifications from Amazon and whatnot.
But you can use some other means like mail, sending links of your app via mail/sending invites via mail or SMS.

Send notification from Android app to any other device

I am developing an Android application that can send notifications (not "push") to any other Android device. Apart from Google Cloud Messaging (GCM) are there any alternatives to do so?
I do not plan to use GCM. My only requirement is to send the notification from my app to any other device via either Bluetooth or WiFi.
I have tried using the basic Notification API for Android but I could not send a notification to other device. It shows me a local notification.
this may helps https://www.firebase.com/docs/java-quickstart.html
firebase sync the devices and whatever you send it to server it automatically pushes that in other device

Categories

Resources