π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
import "package:dio/dio.dart";
class PushGateway {
final Dio _enteDio;
PushGateway(this._enteDio);
Future<void> registerToken({
required String fcmToken,
required String platform,
String? apnsToken,
String? notificationKey,
}) async {
await _enteDio.post(
"/push/token",
data: {
"fcmToken": fcmToken,
"platform": platform,
"apnsToken": apnsToken,
"notificationKey": notificationKey,
},
);
}
}