Skip to content

Commit

Permalink
Retry Failed sms After 10 second for 3 times
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed Jun 7, 2022
1 parent 802fe2c commit a7fcfdd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public void onReceive(Context arg0, Intent arg1) {
if(msg!=null && !msg.equals("success")){
int retry = arg1.getIntExtra("retry",0);
if(retry<3){
PushService.writeLog("SENT FAILED: " + msg, context);
PushService.writeLog("RETRY SEND SMS in 10s #" + (retry+1), context);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit a7fcfdd

Please sign in to comment.