File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,8 +188,7 @@ export class EuropeanController extends SessionController<EuropeBlueLinkyConfig>
188188 } ) ;
189189 }
190190 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 ( '' ) ;
193192 const notificationReponse = await got (
194193 `${ this . environment . baseUrl } /api/v1/spa/notifications/register` ,
195194 {
@@ -205,8 +204,8 @@ export class EuropeanController extends SessionController<EuropeBlueLinkyConfig>
205204 'Stamp' : await this . environment . stamp ( ) ,
206205 } ,
207206 body : {
208- pushRegId : credentials . gcm . token ,
209- pushType : 'GCM ' ,
207+ pushRegId : genRanHex ( 64 ) ,
208+ pushType : 'APNS ' ,
210209 uuid : this . session . deviceId ,
211210 } ,
212211 json : true ,
You can’t perform that action at this time.
0 commit comments