-
Notifications
You must be signed in to change notification settings - Fork 741
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
Unifiedpush-OLD #2993
Unifiedpush-OLD #2993
Conversation
At this moment, the FCM gateway used for the embedded fcm distributor is https://matrix.org/_matrix/push/v1/notify. It would need to work as a gateway for unifiedpush (https://unifiedpush.org/developers/embedded_fcm/) (see https://github.com/vector-im/element-android/pull/2993/files#diff-681374630b8521a655056eecffcdf2b05b6ae12e04c6fb4f08a206b3dd19e983R27) Also, the default endpoint can be changed if you prefer to host it (https://github.com/vector-im/element-android/pull/2993/files#diff-63b96f47c62869ba88e77317ff6a0b31483a6ebee57f5669c8be0c0eefce5c4aR19) |
vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/core/pushers/VectorMessagingReceiver.kt
Outdated
Show resolved
Hide resolved
AlertDialogs are forbidden ?
|
They're not forbidden, you need to use a compatibility library instead of instantiating them directly via that class path |
The build doesn't work after the ktlint clean. It shouldn't be related to this PR, since I haven't touch the lib not found : |
Pull Request Checklist
It still need some improvement, and help is welcomed.
¹ im.vector.app.core.pushers.UPHelper.customOrDefaultGateway: GET custom, if it returns '{"gateway":"matrix"} use custom. What is the best way to do the GET on element-android point of view?
² the only diff should be im.vector.app.push.fcm.FCMHelper.isPlayServicesAvailable and im.vector.app.push.fcm.EmbeddedDistrib. And so, the fallback should work on all flavours without a distributor (on Gplay version, it happens only if the gplay version has been installed on a phone without GServices).