서비스에서 근접경보알림 프록시미티알터를 등록하고 있습니다.
앱이 종료되도 근접경보알림을 받기위해 서비스에서 구현했고 특정 지점의 범위안에 들어가면 브로드캐스트가 알림을 받고 노티를 띄어주는 식입니다.
그런데 앱이 실행중에는 노티가 잘 나오는데 앱이 종료한 후에서는 노티가 안나옵니다..
일단 앱 종료 후 브로드캐스트까지는 알림이 잘 갑니다.
코드는..
PendingIntent pendingIntent=PendingIntent.getActivity(context.getApplicationContext(), 0, new Intent(
context.getApplicationContext(), ActivityCouponInfo.class),PendingIntent.FLAG_UPDATE_CURRENT);
notificationManager=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
notification=new NotificationCompat.Builder(context.getApplicationContext())
.setContentTitle("Title")
.setContentText("Text")
.setSmallIcon(R.drawable.ic_launcher)
.setTicker("Ticker")
.setAutoCancel(true)
.setContentIntent(pendingIntent)
.build();
notificationManager.notify(i,notification);
브로드캐스트 안의 노티에 관한 코드는 이렇게 됩니다.
에러코드는 안뜨고 앱 종료 후라...뭔가 문제가 있는것 같은데 어떻게 해결하면 좋을까요?