feat: фул интеграция FCM с андроидом нах

This commit is contained in:
torvalds
2026-07-02 23:32:31 +07:00
parent 73414b06dc
commit 9a8e5d676f
20 changed files with 1941 additions and 90 deletions
+5 -1
View File
@@ -49,6 +49,8 @@ class Api {
int? get callsSeed => _callsSeed;
String? get deviceId => _deviceId;
String? spoofScope;
List<CountryName>? _registrationCountries;
List<CountryName> get registrationCountries =>
@@ -224,7 +226,9 @@ class Api {
);
}
final spoofed = await SpoofingService.getSpoofedSessionData();
final spoofed = await SpoofingService.getSpoofedSessionData(
scope: spoofScope,
);
if (spoofed != null) {
final sDeviceType = spoofed['device_type'] as String?;
if (sDeviceType != null && sDeviceType != 'IOS') deviceType = sDeviceType;
+1 -1
View File
@@ -504,7 +504,7 @@ class AccountModule {
_ensureOnline();
final packet = await _api.sendRequest(Opcode.config, <dynamic, dynamic>{
'pushToken': pushToken,
'pushOptions': 131072,
'pushOptions': 0,
});
if (packet.isError) {
final msg = messageFromErrorPayload(packet.payload).toUpperCase();