microsoft / appcenter

Central repository for App Center open source resources and planning.
https://appcenter.ms
Creative Commons Attribution 4.0 International
1.01k stars 223 forks source link

Silent push notifications for Android #87

Closed wegascee closed 4 years ago

wegascee commented 5 years ago

Describe the solution you'd like You already support silent push notifications for iOS, but not for Android. I'd like to see that option as well, because it is possible with FCM (data message).

Describe alternatives you've considered Perhaps use Azure or directly FCM instead of AppCenter Push Notifications.

Additional context I don't want to show the notification immediately to the user. First, I want to process the content and afterwards I want to show a local push notification message.

Also I'm not the only who wants this feature. See related SO thread.

jwargo commented 5 years ago

@wegascee thanks for suggesting this. We hear this periodically from customers and we want to fix this for you. I've added this feature to the backlog and will try to get started on it soon.

jwargo commented 5 years ago

@wegascee we're trying to fit this into some updates we're doing for the GCM-FCM migration. Stay tuned.

jruiz666 commented 5 years ago

It is necessary to perform this function again in the application center.

Mechanism for sending and receiving silent notifications in xamarin android and xamarin forms.

87

KSemenenko commented 5 years ago

I also need such functionality

SogoGolf commented 5 years ago

Same, didn't realise till i saw this that AppCenter didn't support silent push on Android, which is a problem for us. Definitely needed, thanks

ayngling commented 5 years ago

I'll echo the last poster. This is really needed.

tharindup commented 5 years ago

This is a must needed feature since GCM is also deprecated. Cannot handle background notifications with the FirebaseMessagingService without the 'data' payload.

mnidhk commented 5 years ago

News on this matter?

jwargo commented 5 years ago

@mnidhk We're still working on it. We've recently started a monthly release schedule for the SDK and we're working on our feature roadmap for the next quarter.

edupxavier commented 5 years ago

@jwargo, in sept 2018 I saw this video annoucing how easy is to use appcenter to handle notification for iOS and Android platforms: https://www.youtube.com/watch?v=TT11e_YCRwI

Weeks working on it I realised I made the wrong decision because of this silent notification issue, Its crutial for our app that was in alpha at that moment.

One year latter I just realised I made the wrong again in believing that a fix would be implemented in the following months and would be better waiting for that.

jwargo commented 5 years ago

@edupxavier I apologize for this, but yeah, background notifications on Android is problematic right now. You can do it in Azure Notification Hubs, but we have some work to do to support it on App Center Push. We're working on getting that in there.

the-habu commented 5 years ago

Same here. We really need it and I guess I will have to switch to another platform :(

ayngling commented 5 years ago

I'll echo the previous poster. I really need this, and I'd be surprised if the same was not true for many others.

Rionardo commented 5 years ago

i also need this now for my notification

edupxavier commented 5 years ago

@geekazoid-at did you switched or still waiting like me?

Rionardo commented 5 years ago

@edupxavier actually you could send push notification to background, but the problem is appcenter Push can't handle the message when the apps is closed, i need other 3rd party Library to handle this, and currently this is quite annoying things to do that.

the-habu commented 5 years ago

@geekazoid-at did you switched or still waiting like me?

@edupxavier: We switched to rnfirebase. Migration was easy and I am 100% satisfied with the pure firebase solution. I had rnfirebase experience before, but in general it is quite well documented and not to hard to implement.

I'll stick to rnfirebase for now. Imho, not having silent pushes makes appcenter pushes completely obsolete but I am still very happy for having appcenter with all it's other features.

edupxavier commented 5 years ago

Imho, not having silent pushes makes appcenter pushes completely obsolete but I am still very happy for having appcenter with all it's other features.

@geekazoid-at , I agree but now I am afraid of trying new features for latter knowing that it's partially implemented.

No more of "do xyz with just two lines of code". :)

Rionardo commented 5 years ago

@jwargo while you're at this , could you also implement support on Local Notification, currently my problem is i want to receive silent notification, but in some cases, when it's important i will need send to local notification, It will be twice the works if we handled the local notification on notification received and also App Center Push on notification receive when the user clicked the notification. I believed most of push notification library also support local notification

jwargo commented 5 years ago

@RioFiveJack can you tell me more about this need? I have heard a couple of others ask for support for local notifications, but that's a client-side SDK feather that's already on the device. What's different about doing it through App Center Push? What's the value add App Center provides here that you can't already have today? How would this work differently if App Center did it for you? I'm really trying to understand the use case here and I really don't get it.

Rionardo commented 4 years ago

@jwargo I want to display notification when user is in our app and there's some message from other user, I could achive this using Local Notification, but doing this from 3rd party library, will make my app have 2 listener : Push.setListener({onPushNotificationReceived : {}}) and 3rd party listener for local push notification. Since right now Push notification listener can't accept any notification from Local Notification, and usually any Push notification library already have what FCM / GCM modules and I don't need it anymore so I would like to keep our app size small by reducing the number of library we need to use.

jwargo commented 4 years ago

Thank you very much for your feedback on App Center Push. We announced yesterday in a blog post that we’re retiring the Push service later this year and recommending customers transition to Azure Notification Hubs instead. The good news is that the same team operates both App Center Push and Azure Notification Hubs, so all customer feedback and feature requests have been transferred to the Azure Notification Hubs roadmap.

nbsoftware commented 4 years ago

Ouch...

On Tue, Feb 4, 2020 at 4:21 PM John M. Wargo notifications@github.com wrote:

Thank you very much for your feedback on App Center Push. We announced yesterday in a blog post https://devblogs.microsoft.com/appcenter/app-center-mbaas-retirement/ that we’re retiring the Push service later this year and recommending customers transition to Azure Notification Hubs instead. The good news is that the same team operates both App Center Push and Azure Notification Hubs, so all customer feedback and feature requests have been transferred to the Azure Notification Hubs roadmap.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/appcenter/issues/87?email_source=notifications&email_token=AALOWOCYBTEILNBH4OAA4ETRBGBYFA5CNFSM4GYWCZ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKYAFJA#issuecomment-581960356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALOWOG5RZI4PLS7BMA5W2DRBGBYFANCNFSM4GYWCZ5Q .

jwargo commented 4 years ago

@nbsoftware so sorry.

shnaz commented 4 years ago

@jwargo Sad news. Do you know if Azure Notification Hubs will support Xamarin.Forms?

jwargo commented 4 years ago

@shnaz https://docs.microsoft.com/en-us/dotnet/api/overview/azure/notification-hubs?view=azure-dotnet

DamienDoumer commented 4 years ago

Ooh... sadly... 😥😥😥 The idea was great, the level of abstraction above those services was awesome... though not fully matured...