node-apn icon indicating copy to clipboard operation
node-apn copied to clipboard

Location Push Service Notification Support

Open foehammer88 opened this issue 3 years ago • 2 comments

With iOS 15, a new notification type was added, Location Push Service Notifications Apple Docs | Setting Up A Remote Notification.

I believe a change is simply needed here index.d.ts, to simply add the text 'location'.

foehammer88 avatar May 05 '22 20:05 foehammer88

Thanks for opening this issue!

  • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.

As long as you set the correct properties, it should work without updating the .ts file.

index.d.ts is exposing the current implementation to TypeScript, but does not prevent you to set pushType to location, and the correct apns-topic according to the linked documentation. (might need to use some as unknown as x when using TypeScript though).

bamse16 avatar Dec 15 '23 10:12 bamse16