Open dragneel30 opened 5 years ago
Are you sure that Allow usage tracking is enabled? I had the same problem and after showing the permission and enabled it it worked fine
@dragneel30,
Like @imspikey suggested, please confirm you added the right permissions, and also request them in runtime. Try to run the example and see if it works on the same device.
The reason why it returns null is because it's not capable of retrieving the packageName, and one of the reasons is permissions not having been granted.
packageName always give me null. Im calling the code inside a service,
TIA.