IOS custom unlock text

I was on my iPhone and I received a warning from tap tap revenge. I noticed that the text was "a slide to get it now!" unlock image Was it always separate from the SDK and how could my application be programmed so that when a notification appears it would have user text?

+4
source share
2 answers

I do not know about push notifications, but there is a property for local notifications. alertAction, just change this line and it will change it. Therefore, if you write notification. alertAction = @"receive"; notification. alertAction = @"receive"; , then the slider will say “slide to receive”, or if a warning appears on it, the button to open the application will say “accept”.

See the link UILocalNotification .

+5
source

For push notifications:

I cannot try right now, but try to use this:

 "alert" : { "action-loc-key" : "your text", "body" : "your text" } 

Refer to this link

0
source

Source: https://habr.com/ru/post/1482746/


All Articles