Skip to content

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

Open
@DouglasHennrich

Description

@DouglasHennrich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions