Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add info about iOS foreground notifications #13956

Merged
merged 3 commits into from Jan 30, 2024
Merged

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Dec 19, 2023

Apparently there is a showInForground in userInfo:

BOOL showInForeground = [TiUtils boolValue:notification.request.content.userInfo[@"showInForeground"] def:NO];
but it was never documented.

Setting userInfo: {showInForeground:true} will display a local notification banner if the app is in foreground.

Copy link
Collaborator

@hansemannn hansemannn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two quick ones

apidoc/Titanium/App/iOS/UserNotificationCenter.yml Outdated Show resolved Hide resolved
apidoc/Titanium/App/iOS/UserNotificationCenter.yml Outdated Show resolved Hide resolved
@m1ga m1ga added the docs label Jan 30, 2024
Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cb1kenobi cb1kenobi merged commit 4e5ca53 into master Jan 30, 2024
7 checks passed
@cb1kenobi cb1kenobi deleted the 231219_ios_docs branch January 30, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants