parse-community / Parse-SDK-JS

The JavaScript SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
1.33k stars 597 forks source link

Installation support for JS SDK #2112

Closed mortenmo closed 6 months ago

mortenmo commented 6 months ago

New Feature / Enhancement Checklist

Current Limitation

Other Parse SDKs (Swift/Kotlin, etc) supports the Installation object to handle push notifications etc. There seems in the JS SDK there is just a minimal implementation.

Feature / Enhancement Description

Similar to the phone SDKs, handle maintaining the Installation object per installation. Things like device type, tokens etc could be handled in similar ways probably relying on react native libraries for react native at least.

This isn't really asking for new functionality beyond what is available in other SDKs.

Alternatives / Workarounds

You could probably handle this all manually today.

3rd Party References

In the other SDKs built for Mobile.

parse-github-assistant[bot] commented 6 months ago

Thanks for opening this issue!

dplewis commented 6 months ago

@mortenmo Good idea, getting this working for the web should be easy. For react-native / expo as long as a deviceToken and deviceType are set it should work with Parse.Push out of the box.

dplewis commented 6 months ago

@mortenmo I added Push notification for web support if you want to check it out

https://github.com/parse-community/parse-server-push-adapter/pull/239

mortenmo commented 6 months ago

@dplewis nice! looking forward to try it out. I'm using Expo push (https://docs.expo.dev/push-notifications/sending-notifications/) on React Native/Expo for mobile so I'll migrate my custom notification code to use the push adapter there too when this all merges.