File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,7 @@ export class EuropeanController extends SessionController<EuropeBlueLinkyConfig>
188
188
} ) ;
189
189
}
190
190
logger . debug ( '@EuropeController.login: Authenticated properly with user and password' ) ;
191
-
192
- const credentials = await pr . register ( this . environment . GCMSenderID ) ;
191
+ const genRanHex = size => [ ...Array ( size ) ] . map ( ( ) => Math . floor ( Math . random ( ) * 16 ) . toString ( 16 ) ) . join ( '' ) ;
193
192
const notificationReponse = await got (
194
193
`${ this . environment . baseUrl } /api/v1/spa/notifications/register` ,
195
194
{
@@ -205,8 +204,8 @@ export class EuropeanController extends SessionController<EuropeBlueLinkyConfig>
205
204
'Stamp' : await this . environment . stamp ( ) ,
206
205
} ,
207
206
body : {
208
- pushRegId : credentials . gcm . token ,
209
- pushType : 'GCM ' ,
207
+ pushRegId : genRanHex ( 64 ) ,
208
+ pushType : 'APNS ' ,
210
209
uuid : this . session . deviceId ,
211
210
} ,
212
211
json : true ,
You can’t perform that action at this time.
0 commit comments