titanium-firebase-cloud-messaging icon indicating copy to clipboard operation
titanium-firebase-cloud-messaging copied to clipboard

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

Open DouglasHennrich opened this issue 4 years ago • 0 comments

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

DouglasHennrich avatar Oct 06 '19 15:10 DouglasHennrich