APNS production certificate not working

249 Views Asked by At

i am new bie in push notification and trying to apns push notification but it not working.

my code is

    ApnsService service = APNS.newService()
            .withCert(apns_keystore, apns_keystore_password)
            .withProductionDestination().build();
    String payload = APNS.newPayload().badge((int) badge)
            .alertBody(body).sound("chime").actionKey(from).build();
    service.push(token, payload);

please help me

0

There are 0 best solutions below