Android Wear - show email on the wear - android

First of all, sorry for my english.
I have a project at school and I need to show, on the wear, the number of mails and a little summary of each mail. But my teacher doesn't want to enter the login and the password, which could permit me to connect the mail server. So I thought I can use the notification of the client mail application to count the mail and to show the summary. (But I can only get the mail when the wear is connected and when the application is running)
I can catch the mail notification but I can't send the data to the wear from the NotificationLIstenerService. So, I thought I could catch the notification on the wear but I don't find how to do that.
Have somebody any idea how to do that or have somebody any other idea to the task my teacher is looking for ?
Thanks for answering.

You cannot send data to the wear from the NotificationListener service because it is not possible to use notificationListenerService on the wearable and there is no screen for the user to allow this.
Sources:
NotificationListenerService Wearable
Android Wear: Listen to incoming notifications
So for the alternative, you can try to use Wearable Data Layer API, which is part of Google Play service that provides a communication channel for your handheld and wearable apps to send and syncing data. Or you can use the NotificationCompat.Builder that usually use in creating notification in wearables.
For more information, check this documentation on Creating a Notification for Wearables.

Related

Firebase device to device chat with notification

I want to develop a one-to-one chat in android by using Firebase. By using
crazzyhit code one-to-one chat is working.
But device to device push notification is not working. I googled device to device notification, but all are showing about sending notification from firebase console. Can anyone give some device to device chat notification tips?
It's possible, you can try OnseSignal. It lets you sending push notifications from device to device.
You have to create php webservices which will let you send notifications to specific devices on behalf of device tocken.
Please Check FireChat to make Person to Person Chat app.

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.

Can you send an sms to an app regardless of which country you reside?

I've ran across a topic that discusses how you could create an app that allows you to send an sms to the application and receive them from it. My question is simply the following:
Can someone send an sms to that app regardless of where they live or are there any limitations in terms of service provider etc?
Chances are you are going to have to use Google Cloud Messaging to accomplish this, seen here
It sounds like you might be after push notifications rather than an SMS. Amazon's Simple Notification Service (SNS) allows you to send push notifications as wells as SMSs though and has an Android SDK.
In either scenario you'd be able to send SMSs or push notifications to any device regardless of its location.

Hows App server and GCM server are different in functioning?

I follow this link PLease see here . Can anyone tell me exact process to communication between two mobile devices in terms of push notification. Please help me.
GCM is a google cloud messaging http server.It is used for providing notification service on android phones any notification you receive on your phone is sent through GCM.Every device using a specific application is registered with GCM. Even if you want your application to send notification to the user on occurrence of something it's not possible without GCM.

Push Notification from one android device to another

Here I am developing an android app which deals with housing complex.
In this app their are 2 kinds of users:
Builder/Complex Owner
Flat Owner.
Now here the Builder/Complex Owner can send push notification to flat owners.
How can I achieve that? Please help.
Here I cannot use G.C.M as G.C.M. is used for server side push messaging.
Not sure if there is any other way. What you could do is to let the app send a push notification request to the server, then the server would issue the push notification through G.C.M. If you don't have a server available you could do it through text messages but be sure to have a good text messaging plan. You could possibly also use an existing service (for example Facebook) and send the messages through their API.
EDIT:
To do it via text messages: SMS receive with no notification. Again, make sure that you have a good text messaging plan if doing this. Sending an SMS to ten different people will count as ten different SMS messages.. If you have a lot of users it would probably be cheaper to get hold of an SMS server. But then again, you should just use G.C.M.
It is possible to send device to device push notification using gcm.See this link.

Categories

Resources