push notification Icon #1501
Unanswered
oracle2000
asked this question in
Q&A
Replies: 3 comments 1 reply
-
For iOS, you can use a notification extension. That's outside of Shiny. This will give you full access to the notification object from push and allow you to change it as needed |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry but when i receive a notification in the allert on the phone the icon in a white square and not my icon
Sorry for my poor english
Fabio Falaschi
HelpDesk
Informatica Futura Srl
Confidenziale. Questo messaggio di posta elettronica può contenere informazioni di carattere confidenziale rivolte esclusivamente al destinatario sopra indicato.Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, siete pregati di segnalarlo immediatamente al mittente e distruggere quanto ricevuto (compresi i file allegati) senza farne copia. E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona.Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo più grave illecito, ed espone il responsabile alle relative conseguenze.
Confidentially notice. This e-mail transmission may contain legally privileged and/or confidential information. Please do not read it if you are not the intended recipient(S).Any use, distribution, reproduction or disclosure by any other person is strictly prohibited.If you have received this e-mail in error, please notify the sender and destroy the original transmission and its attachments without reading or saving it in any manner.
Da: Allan Ritchie ***@***.***>
Inviato: venerdì 12 luglio 2024 18:55
A: shinyorg/shiny ***@***.***>
Cc: oracle2000 ***@***.***>; Author ***@***.***>
Oggetto: Re: [shinyorg/shiny] push notification Icon (Discussion #1501)
For iOS, you can use a notification extension. That's outside of Shiny.
For Android, you can use this sample point: https://github.com/shinyorg/pushtester/blob/53022d8faf395e547db3f32bf0629e0254a39d2e/PushEndToEnd/Delegates/MyPushDelegate.cs#L27
This will give you full access to the notification object from push and allow you to change it as needed
—
Reply to this email directly, view it on GitHub <#1501 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG6HCZCDE4GB5P42SFV3D33ZMAC5XAVCNFSM6AAAAABKZHNWW6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBTGM4TINQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AG6HCZBJGDEKC54LKSOZDP3ZMAC5XA5CNFSM6AAAAABKZHNWW6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQATENRU.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, my app is for android
That is my code:
public Task OnReceived(PushNotification notification)
{
#if ANDROID
// TODO: if in foreground
((AndroidPushNotification)notification).Notify(100,((AndroidPushNotification)notification).CreateBuilder()
.SetBadgeIconType(1)
.SetSmallIcon(Resource.Drawable.notifica));
#endif
MessagingCenter.Send<MainPage>((MainPage)Application.Current.MainPage, "notifica arrivata");
return Task.CompletedTask;
}
I attached my icon
Thanks a lot
Fabio Falaschi
HelpDesk
Informatica Futura Srl
Confidenziale. Questo messaggio di posta elettronica può contenere informazioni di carattere confidenziale rivolte esclusivamente al destinatario sopra indicato.Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, siete pregati di segnalarlo immediatamente al mittente e distruggere quanto ricevuto (compresi i file allegati) senza farne copia. E' vietato l'uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona.Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo più grave illecito, ed espone il responsabile alle relative conseguenze.
Confidentially notice. This e-mail transmission may contain legally privileged and/or confidential information. Please do not read it if you are not the intended recipient(S).Any use, distribution, reproduction or disclosure by any other person is strictly prohibited.If you have received this e-mail in error, please notify the sender and destroy the original transmission and its attachments without reading or saving it in any manner.
Da: Allan Ritchie ***@***.***>
Inviato: lunedì 15 luglio 2024 19:35
A: shinyorg/shiny ***@***.***>
Cc: oracle2000 ***@***.***>; Author ***@***.***>
Oggetto: Re: [shinyorg/shiny] push notification Icon (Discussion #1501)
It means you haven't setup all of the required documents in your iOS app to cover that notification icon. The sample app I mentioned, still has all of the answers you're looking for. You just need to set your MAUI assets up.
—
Reply to this email directly, view it on GitHub <#1501 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG6HCZBNRLMDYAKRGQ5ZBPLZMQB3HAVCNFSM6AAAAABKZHNWW6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBVGM4TEOA> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AG6HCZFF2EG77QRGS2GDVIDZMQB3HA5CNFSM6AAAAABKZHNWW6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQATFUSQ.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
there is a way to choose notification icon?
Beta Was this translation helpful? Give feedback.
All reactions