Problems with push activation

Hello people,

when the application is installed and the push option is not activated,

How do I get the permission promt to show up again?

Edited:

My first response was rubbish.

This should work to check if the user accepted notification

[lua]

function IdsAvailable(userID, pushToken)
print(“PLAYER_ID:” … userID)
if (pushToken) then – nil if user did not accept push notifications on iOS
print(“PUSH_TOKEN:” … pushToken)
end
end

OneSignal.IdsAvailableCallback(IdsAvailable)

[/lua]

You could trigger an alert to remind the user that push should be allowed for your app?

Hope this helps,

Nail

Edited:

My first response was rubbish.

This should work to check if the user accepted notification

[lua]

function IdsAvailable(userID, pushToken)
print(“PLAYER_ID:” … userID)
if (pushToken) then – nil if user did not accept push notifications on iOS
print(“PUSH_TOKEN:” … pushToken)
end
end

OneSignal.IdsAvailableCallback(IdsAvailable)

[/lua]

You could trigger an alert to remind the user that push should be allowed for your app?

Hope this helps,

Nail