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

[iOS] Alert won't show if app are on foreground #93

Open
DouglasHennrich opened this issue Oct 6, 2019 · 0 comments
Open

[iOS] Alert won't show if app are on foreground #93

DouglasHennrich opened this issue Oct 6, 2019 · 0 comments

Comments

@DouglasHennrich
Copy link

DouglasHennrich commented Oct 6, 2019

I'm using this payload to send the notification:

{
	notification: {
		title: payload.title || 'Atenção',
		body: payload.body || 'Você possui uma nova mensagem',
	},
	apns: {
		payload: {
			aps: {
				headers: {
					'apns-priority': '10',
				},
			},
			// payload: { ...payload },
		},
	},
	android: {
		data: {
			force_show_in_foreground: 'true',
			channel_id: `${process.env.FCM_CHANNEL_ID}`,
		},
		restricted_package_name: process.env.FCM_PACKAGENAME,
		priority: 'HIGH',
		ttl: 5000,
	},
}

TiSDK 7.5.1.GA
xCode 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant