Skip to content
Discussion options

You must be logged in to vote

For future reference, the SDK already does it.

With the flag userInfo: {showInForeground: true}

Test notification:

var notification = Ti.App.iOS.scheduleLocalNotification({
    alertAction: 'Read now',
    alertTitle: 'Read now',
    alertBody: 'Custom message',
    date: new Date(new Date().getTime() + 3000),
    userInfo: {
        showInForeground: true
    },
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by francisco-alvarado-espol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant