Konuyu Oyla:
  • Derecelendirme: 5/5 - 1 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Push Notification Örneği Var mı?
#11
(30-10-2018, Saat: 11:22)Fesih ARSLAN Adlı Kullanıcıdan Alıntı:
(30-10-2018, Saat: 00:40)hakanharbeli Adlı Kullanıcıdan Alıntı: Merhaba,

3-4 gündür bildirim işlemiyle uğraşıyorum. Berlin 10.1 kullanıyorum. İnterneti aradım taradım bütün örnekleri yaptım ama firebase ile bildirim gönderim işlemini bir türlü başarılı tamamlayamadım.

Bir hayır sever abim küçük bir demo yapabilir mi ya da paylaşabilir mi
Şimdiden çok teşkkür ederim

Konunun aciliyetine binaen (@hakanharbeli, bölüm yetkiniz de etkinleştirildi) 15. Bölüm örnekleri yüklenmiştir.

Üstat çok teşekkür ederim :Smile)
Cevapla
#12
hocam PushNotification ile ilgili 3.parti bir yazılım var JVESuite diye. Ben bunu kullanıyorum. Fakat PushWoosh altyapısını kullanıyor. JVE 100 dolar civarında, PW a ise yıllık 100dolar gibi bir rakam ödüyorsunuz fakat çalışması muazzam ve fantastik..
// Bilgi paylaştıkça çoğalır.. 

Cevapla
#13
Burada bir örnek inceleyebilirisiniz
https://github.com/grijjy/DelphiRemotePushSender
Cevapla
#14
(07-12-2018, Saat: 11:49)okoca Adlı Kullanıcıdan Alıntı: saçma bulmuyormusunuz altı üstü bir notification çıkarmak için para ödemeye bazi hizmet sağlayıcılarıda kişi adetine göre ücretlendirme yapıyor..

bu işin bir diğer kolay yolu, uygulamnıza telefon boot edildiğinde otomatik tetiklenecek bir servis eklemek,
bu servisinde saatte bir gibi bir zamanlama ile kendi sunucunuzdan basitce bir txt tarzı bir yapı ile notification mesajını çektirtmekdir,
dosya uzantısını .html olarak verirseniz, cloudflare gibi servisler bu sayfayı belli süreler cacheler, böylece 100binlerce client hiç bir sunucu load ı oluşturmadan notification u kontrol de edebilir.

Zaten aslında bende sizin dediğiniz şekilde service yazıp işlemleri yapma taraftarıyım ama Delphi background service yazımında uygulama kapandıktan sonra kendini tetikleyemiyor. Uygulama kapanınca servisi kapatıyor. Java gereksinimi duyuluyor. Java ile servisi yazıp Delphi'ye kodu enjekte edebiliyorsunuz. Böylelikle dediğiniz işlem yapılıyor ama Delphi sadece yeterli kalmıyor..
kisisel_logo_dark.png
WWW
Cevapla
#15
(07-12-2018, Saat: 13:24)Halil Han Badem Adlı Kullanıcıdan Alıntı:
(07-12-2018, Saat: 11:49)okoca Adlı Kullanıcıdan Alıntı: saçma bulmuyormusunuz altı üstü bir notification çıkarmak için para ödemeye bazi hizmet sağlayıcılarıda kişi adetine göre ücretlendirme yapıyor..

bu işin bir diğer kolay yolu, uygulamnıza telefon boot edildiğinde otomatik tetiklenecek bir servis eklemek,
bu servisinde saatte bir gibi bir zamanlama ile kendi sunucunuzdan basitce bir txt tarzı bir yapı ile notification mesajını çektirtmekdir,
dosya uzantısını .html olarak verirseniz, cloudflare gibi servisler bu sayfayı belli süreler cacheler, böylece 100binlerce client hiç bir sunucu load ı oluşturmadan notification u kontrol de edebilir.

Zaten aslında bende sizin dediğiniz şekilde service yazıp işlemleri yapma taraftarıyım ama Delphi background service yazımında uygulama kapandıktan sonra kendini tetikleyemiyor. Uygulama kapanınca servisi kapatıyor. Java gereksinimi duyuluyor. Java ile servisi yazıp Delphi'ye kodu enjekte edebiliyorsunuz. Böylelikle dediğiniz işlem yapılıyor ama Delphi sadece yeterli kalmıyor..

eğer servisini çalıştırdıkdan sonra START_STICKY moduna sokarsan işletim sistemi ramı boşaltmak için uygulamanı killese dahi tekrar başlatılacakdır.

Function TAndroidServiceDM.AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer;
begin
 Result:=TJService.JavaClass.START_STICKY;
end;



START_STICKY is basically the same as the previous behavior, where the service is left "started" and will later be restarted by the system. The only difference from previous versions of the platform is that it if it gets restarted because its process is killed, onStartCommand() will be called on the next instance of the service with a null Intent instead of not being called at all. Services that use this mode should always check for this case and deal with it appropriately.



START_NOT_STICKY says that, after returning from onStartCreated(), if the process is killed with no remaining start commands to deliver, then the service will be stopped instead of restarted. This makes a lot more sense for services that are intended to only run while executing commands sent to them. For example, a service may be started every 15 minutes from an alarm to poll some network state. If it gets killed while doing that work, it would be best to just let it be stopped and get started the next time the alarm fires.

START_REDELIVER_INTENT is like START_NOT_STICKY, except if the service's process is killed before it calls stopSelf() for a given intent, that intent will be re-delivered to it until it completes (unless after some number of more tries it still can't complete, at which point the system gives up). This is useful for services that are receiving commands of work to do, and want to make sure they do eventually complete the work for each command sent.
Cevapla
#16
(14-12-2018, Saat: 21:42)okoca Adlı Kullanıcıdan Alıntı:
(07-12-2018, Saat: 13:24)Halil Han Badem Adlı Kullanıcıdan Alıntı: Zaten aslında bende sizin dediğiniz şekilde service yazıp işlemleri yapma taraftarıyım ama Delphi background service yazımında uygulama kapandıktan sonra kendini tetikleyemiyor. Uygulama kapanınca servisi kapatıyor. Java gereksinimi duyuluyor. Java ile servisi yazıp Delphi'ye kodu enjekte edebiliyorsunuz. Böylelikle dediğiniz işlem yapılıyor ama Delphi sadece yeterli kalmıyor..

eğer servisini çalıştırdıkdan sonra START_STICKY moduna sokarsan işletim sistemi ramı boşaltmak için uygulamanı killese dahi tekrar başlatılacakdır.

Function TAndroidServiceDM.AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer;
begin
 Result:=TJService.JavaClass.START_STICKY;
end;




START_STICKY is basically the same as the previous behavior, where the service is left "started" and will later be restarted by the system. The only difference from previous versions of the platform is that it if it gets restarted because its process is killed, onStartCommand() will be called on the next instance of the service with a null Intent instead of not being called at all. Services that use this mode should always check for this case and deal with it appropriately.



START_NOT_STICKY says that, after returning from onStartCreated(), if the process is killed with no remaining start commands to deliver, then the service will be stopped instead of restarted. This makes a lot more sense for services that are intended to only run while executing commands sent to them. For example, a service may be started every 15 minutes from an alarm to poll some network state. If it gets killed while doing that work, it would be best to just let it be stopped and get started the next time the alarm fires.

START_REDELIVER_INTENT is like START_NOT_STICKY, except if the service's process is killed before it calls stopSelf() for a given intent, that intent will be re-delivered to it until it completes (unless after some number of more tries it still can't complete, at which point the system gives up). This is useful for services that are receiving commands of work to do, and want to make sure they do eventually complete the work for each command sent.

START_STICKY sınıfını kullanmama rağmen sonuç alamadım. Hatta günlerce araştırma yaptığımı bilirim. 

Konularımın linkleri:

http://www.delphican.com/showthread.php?tid=1946

https://stackoverflow.com/questions/4866...ndroid-app

Eğer bir yerde hata yapıyorsam gerçekten öğrenmek isterim. Bu sorunu çözersem Android noktasında güzel proje fikirlerim var çünkü Smile
kisisel_logo_dark.png
WWW
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Notification Action click emrahozten 2 357 27-09-2023, Saat: 16:18
Son Yorum: emrahozten
  FMX te Firebase örneği [Çözüldü] CesuR 9 1.619 25-06-2023, Saat: 10:21
Son Yorum: walidAlgeria
  Delphi 11 IOS Push Notification Token Sorunu elixir84 9 1.527 05-04-2023, Saat: 14:20
Son Yorum: elixir84
  Rad Server Push Notification emrahozten 2 769 24-01-2023, Saat: 21:31
Son Yorum: Hayati
  FCM Push Notification Resim Ekleme vedat33 0 502 15-12-2022, Saat: 13:56
Son Yorum: vedat33



Konuyu Okuyanlar: 1 Ziyaretçi