Fetch: Send local broadcasts instead of System wide

Created on 15 May 2020  路  1Comment  路  Source: tonyofrancis/Fetch

I noticed that the library sends a system wide broadcast: com.tonyodev.fetch2.action.QUEUE_BACKOFF_RESET

I wanted to know what made you send system-wide broadcasts? It is not possible to use LocalBroadcastManager for this purpose ?

bug

Most helpful comment

@amsurana Great catch! I have added intent.setPackageName(context.packageName) to limit the scope. The reason why we don't use LocalBroadcastManager is because we would have to add the androidx support library as a dependency to only use LocalBroadcastManager.

>All comments

@amsurana Great catch! I have added intent.setPackageName(context.packageName) to limit the scope. The reason why we don't use LocalBroadcastManager is because we would have to add the androidx support library as a dependency to only use LocalBroadcastManager.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

burhanaksendir picture burhanaksendir  路  3Comments

jpvs0101 picture jpvs0101  路  5Comments

Mahan3340 picture Mahan3340  路  4Comments

VitorAndrioli picture VitorAndrioli  路  4Comments

maulik9898 picture maulik9898  路  4Comments