universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

How to disable sound and vibration when a special push notification is received? There is no way to disable sound and vibration currently when notification is received. #38

Open StarNeit opened 7 years ago

StarNeit commented 7 years ago

Please help.

ASAP.

yuriy-universal-ivanov commented 7 years ago

Hi @StarNeit ,

What do you mean here as "special push notification"? Is it your own notification which you use for sending custom messages to the client app?

If so, please note, that push notifications is inappropriate solution for this task: they are not very reliable, may be disabled by user, and push notifications services (FCM, ADM, WNS, APNS) don't guarantee their delivery (or that the delivery is fast enough). But you can quite easily add "silent" notifications support to both Android platforms and Windows Store (as showing system notification is done not by OS, but by UTNotifications' native plugins - see Assets/UTNotifications/Editor/Android/NativePluginSource & Assets/Plugins/WSA/UTNotifications/UTNotifications.sln). On iOS though it can be quite complicated - as the OS itself shows system notifications. There is a support for silent push notifications on iOS, but you'll probably have to modify the native plugin or/and the source code, generated by Unity on build (Objective-C).

We officially don't support data-only (silent) notifications and currently don't have plans to add such functionality.

I personally advise you to use a different way of communication between client and server - directly (using any protocol - f.e. REST (HTTP), TCP or WebSockets).

Best regards, Yuriy, Universal Tools team.

StarNeit commented 7 years ago

I don't use any special notification now. I only use FCM push notification. But I want the push notification to be received without any sound or vibration. I have to use your plugin push notification, because the best game score should be updated real time. I want silent push notification though. Is there any other possible solution to overcome my problem?

Thanks.

StarNeit commented 7 years ago

Any solution please? I need help ASAP

StarNeit commented 7 years ago

Any solution please. I hope to hear your opinion about this issue. Thanks.

StarNeit commented 7 years ago

Can you help me please?

yuriy-universal-ivanov commented 7 years ago

Hi @StarNeit ,

Please read my previous message - it answers your question. The same in brief: this functionality is not supported by our asset directly and will not be supported. Using push notifications for that purpose is a bad idea. But if you really want to, it can be done easily by modification of Android and Windows Store native plugins, but on iOS it will be quite difficult to do.

Best regards, Yuriy, Universal Tools team.