MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.
iOS Push notification
  • Vote Up0Vote Down lynlyndrupallynlyndrupal
    Posts: 20Registered Users
    how to notify to ios apps from web server or website by using push notification .please
  • 8 မှတ်ချက်များ sorted by
  • Vote Up1Vote Down saturngodsaturngod
    Posts: 4,599Administrators
    Device token က Device နဲ့ App ပေါ်မှာ မူတည်ပြီး ထုတ်ပေးထားတာပါ။

    ဥပမာ။

    မောင်မောင် က iPhone 4s နဲ့ iPad ရှိတယ်ဆိုရင် iPhone 4s အတွက်က token တစ်ခု ၊ iPad အတွက်က token တစ်ခုထွက်လာမှာပါ။

    iPhone 4s က device token ကို ပို့ရင် အဲဒီ မောင်မောင်က iPhone 4s မှာပဲ လက်ခံရရှိပါမယ်။
    iPad device token ကို ပို့ရင် iPad မှာပဲ ရပါမယ်။

    မောင်မောင် ရဲ့ device အားလုံးကို ပို့ချင်ရင် iPhone 4s ကော iPad ကော နှစ်ခုလုံးကို ပို့ပေးဖို့လိုပါတယ်။


    device token က users နဲ့ မဆိုင်ပါဘူး။ device နဲ့ app ပေါ်မှာ ပဲ မူတည်ပါတယ်။

    ဥပမာ။
    မောင်မောင်က iphone မှာ logout လုပ်ထားတယ်။ သို့ပေမယ့် app ရေးတဲ့သူက logout လုပ်တဲ့ အချိန်မှာ server ကနေ device token ကို ပြန်ဖျက်ထားတာ မလုပ်ထားရင် မောင်မောင်ဆီပို့ဖို့ database မှာ device token ၂ ခု ရှိနေတယ်။ ဒါကြောင့် ၂ ခုလုံးကို ပို့လိုက်တယ်။ မောင်မောင်က iphone မှာ logout လုပ်ထားပေမယ့် push notification ကို ရနေမှာပဲ။


    If A and B download that app, and I want to send to A only, how should I do?

    အဲဒီ မေးခွန်းမှာ A က device တစ်ခု B က device တစ်ခုဆိုရင် A device token နဲ့ B device token က မတူပါဘူး။ A ဆီ ပို့ချင်ရင် A device token ကို ပို့ရုံပါပဲ။
  • Vote Up0Vote Down lynlyndrupallynlyndrupal
    Posts: 20Registered Users
    phone မှာ ရှိတဲ့ deviceToken id ကုို server ကနေ ဘယ်လုိုယူရမလဲလုို့သိချင်လုို့ပါ။ အစ်ကုို ရဲ ့ samplepush.php မှာ$deviceToken = '0a7d65e6 b621fbf2 7fb43b23 cb673af5 d689fdfa d2f9a8b2 59d2f507 f1e72a9c' ကုို က ကြိုက်တာပေးလုို့ရတာလား။ဒါမှမဟုုတ် client iphone ရဲ့ deviceTokenid ကုိုယူပြီးတော့မှ push notify လုုပ်ရတာလားသိချင်လုို့ပါ။ဖြစ်နုိုင်ရင်ကျေး ဇူးပြုပြီး complete လေးရှင်းပြပေးပါလား
  • Vote Up0Vote Down saturngodsaturngod
    Posts: 4,599Administrators
    device token is get from iOS. Read http://mobiforge.com/developing/story/programming-apple-push-notification-services

    for push notification tutorial , step by step.

    You can get device token at


    - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {

    NSString *str = [NSString
    stringWithFormat:@"Device Token=%@",deviceToken];
    NSLog(str);

    }
  • Vote Up0Vote Down lynlyndrupallynlyndrupal
    Posts: 20Registered Users

    ဟုတ်ကဲ့ပါ ကျွှန်တော်သိချင်တာလေးက ဥပမာ ကျွှန်တော့ apps ကို user က itunes storeကနေ down ထားတယ် ဆိုပါဆို့ user က push notification ကို ok ပေးမယ် အဲဒါဆို ကျွှန်တော်တို့က user ရဲ့ devicetoken ကို သိမှ server က message ပို့လို့ရတယ်လို့ထင်ပါတယ်။
    ကျွှန်တော် server ဘက်က php file မှာ ပို့မယ့် devicestoken ကို auto သိတာလား ဒါမှမဟုတ် php file မှာ ဘာထည့်ဖို့လိုသေးလဲမသိဘူးခင်ဗျား
    http://mobiforge.com/developing/story/programming-apple-push-notification-services site မှာလည်း devicetoken ကို ထည့်ထားတာတွေ့ပါတယ်။

  • Vote Up0Vote Down saturngodsaturngod
    Posts: 4,599Administrators
    iOS ကနေ server ကို device token ပို့ပေးရတယ်။ device token ကို server က မှတ်ထားရတယ်။

    user တစ်ယောက် ရဲ့ ဖုန်းတစ်လုံးအတွက် token တစ်ခု ရတယ်။

    အဲဒီ မှတ်ထားတဲ့ token ကိုပဲ php ကနေ ပို့ပေးရတယ်။

    ဥပမာ။

    မောင်မောင် ရဲ့ iPhone က 12345234A89E789B8967AE78ED1128D7 ဆိုပါစို့

    အဲဒီ နံပတ်က app စစခြင်းဖွင့်ခြင်း user ကို push notification လုပ်မလားတောင်းတယ်။ မောင်မောင် က allow လုပ်မှသာ အဲဒီ နံပတ်ကို ရမှာ။ အဲဒီ နံပတ်ကို


    - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {


    ကနေ ရမယ်။

    ရတာ နဲ့ server ကို ပို့မယ်။

    server က မောင်မောင် ရဲ့ iPhone ကို push notification ပို့ချင်ရင်

    12345234A89E789B8967AE78ED1128D7

    ကို ပို့ပေးရတယ်။
  • Vote Up0Vote Down KhantThuKhantThu
    Posts: 79Registered Users
    I would like to know how to differentiate each different iphone. If A and B download that app, and I want to send to A only, how should I do?

    Or How can we know different token on each user? Do we need to send back to server for each different token?
  • Vote Up0Vote Down KhantThuKhantThu
    Posts: 79Registered Users
    thanks bro :)
ဆွေးနွေးမေးမြန်းခြင်းစတင်ရန်

မင်္ဂလာပါ!

လှိုက်လှဲစွာကြိုဆိုပါသည်။ ယခု ပထမဆုံးအကြိမ် ရောက်ဖူးခြင်းဖြစ်ပါသလား? ဝင်ရောက် ဆွေးနွေး မေးမြန်းလိုပါလျှင် အောက်တွင်ဖော်ပြထားသော button များမှတဆင့် ဝင်ရောက် ဆွေးနွေးနိုင်သကဲ့သို့ အဖွဲ့ဝင်အသစ်အနေဖြင့်လည်း လျှောက်ထားနိုင်ပါတယ်။

Facebook ဖြင့်ဝင်ရန် Google ဖြင့်ဝင်ရောက်ရန် OpenID ဖြင့်ဝင်ရောက်ရန် Twitter ဖြင့်ဝင်ရောက်ရန်

အမျိုးအစားများ

In this Discussion