You can pass in an asterisk to unsubscribe a device from all its subscribed topics at once:
Android:
Pushy.unsubscribe("*", getApplicationContext());
iOS:
pushy.unsubscribe(topic: "*", handler: { (error) in // Handle unsubscribe errors if error != nil { return print("Unsubscribe failed: \(error!.localizedDescription)") } })
In case the device has no active subscriptions, the method will not error out.