Navigation

    Monaca & Onsen UI
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. lapisanlangit
    L
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    lapisanlangit

    @lapisanlangit

    0
    Reputation
    12
    Posts
    892
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    lapisanlangit Follow

    Posts made by lapisanlangit

    • RE: OneSignal push notification handle in onsen ui controller

      @Fran-Diox wow your answer is perfect. I don’t know about myNavigator before, i think must be placed in every controller page. thank you very much…

      posted in Onsen UI
      L
      lapisanlangit
    • RE: OneSignal push notification handle in onsen ui controller

      i don’t understand…local/remote? are you have example?

      posted in Onsen UI
      L
      lapisanlangit
    • RE: OneSignal push notification handle in onsen ui controller

      thank you @munsterlander, I actually building the package for use on real the device. that’s eror because I use chrome browser, I don’t know what is the true error when I used device… but the page has used startController is not display well. if I put this code in another page with another controller for example calendarController

      app.controller('calendarController', function ($scope, $http) {
      
       var notificationOpenedCallback = function (jsonData) {
          $scope.myNavigator.pushPage('form/displaypage.html'); // this is what i want
      
       };
      
       window.plugins.OneSignal 
          .startInit("xxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxx)
          .handleNotificationOpened(notificationOpenedCallback)
          .endInit();
      });
      

      the calendar page also not display well (e.g. button is missing etc). What is the best practice to handle notfication using cordova?

      posted in Onsen UI
      L
      lapisanlangit
    • OneSignal push notification handle in onsen ui controller

      i have problem with handling OneSignal pushNotification in onsen ui app. My purpose is open display page from any controllers, every page has specific controller. Whenever notification come will do same thing, open display page. My code is here

      index.js

      function onDeviceReady() {
        document.removeEventListener('deviceready', onDeviceReady, false);
        var notificationOpenedCallback = function(jsonData) {
        };
      
        window.plugins.OneSignal
          .startInit("xxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxx")
          .handleNotificationOpened(notificationOpenedCallback)
          .endInit();           
      }
      

      stratcontroller.js

      app.controller('startController', function ($scope, $http) {
      
       var notificationOpenedCallback = function (jsonData) {
          $scope.myNavigator.pushPage('form/displaypage.html'); // this is what i want
      
       };
      
       window.plugins.OneSignal //get error : Uncaught TypeError: Cannot read property 'OneSignal' of undefined
          .startInit("xxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxx)
          .handleNotificationOpened(notificationOpenedCallback)
          .endInit();
      });
      

      how to handle notification from any controllers?thank you

      posted in Onsen UI
      L
      lapisanlangit
    • RE: angular2-onsenui-kitchensink not working

      @Fran-Diox yes…can you give us simple app in github using angular 2, most of tutorial in documentation using reactjs. thank you very much

      posted in Onsen UI
      L
      lapisanlangit
    • RE: What is Material Design?

      @fran-diox and @munsterlander thanks for your answer, already fix now. i love onsenui instead of ionic. I have built 2 apps with onsenui and very exiting when onsenui use angular 2 and material design. thank you very much…

      posted in Monaca & Onsen UI Articles
      L
      lapisanlangit
    • RE: What is Material Design?

      @munsterlander: how if i choose material design? i have tried this
      ons.ready(function(){
      ons.disableAutoStyling();
      ons.platform.select(‘md’);
      ons.forcePlatformStyling(‘md’);
      });

      but always show iphone/ios style? thank you

      posted in Monaca & Onsen UI Articles
      L
      lapisanlangit
    • RE: What is Material Design?

      @munsterlander: thanks, i prefer to use material design over iphone style, automatic style switching good but make me confuse if i want fully use material design ini my app. i hope onsen team will give us option when install onsenui, will use iphone or material design.

      posted in Monaca & Onsen UI Articles
      L
      lapisanlangit
    • RE: What is Material Design?

      Automatic style switching it’s ok, but i want use material design for my development proses, i am using windows and chrome browser, but my onsenui app only show iphone style, how to force switch to material design with chrome browser? thanks

      posted in Monaca & Onsen UI Articles
      L
      lapisanlangit
    • RE: onsen ui - angular 2 for production

      oh my god, i am sorry this is my bad…i didn’t read about monaca cli, thank you Fran Diox

      posted in Onsen UI
      L
      lapisanlangit