The diffrence with Build and Publish Build

6 posts, 1 answers
  1. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 06 Aug 2013 Link to this post

    Hi, Icenium,

    I've deployed one App in google play on last march with graphite without problem.
    To upgrade at this time, after I changed some source and tried on simulator, it works fine.
    To test on real device,Android 4.x, I build and copy .apk on device and that also works well.
    However when I build for publish after signing and upload in google play, app does not work at all.
    To check what is diffrent between build and publish build .apk, I copied one by one to real device
    and found build one is working fine but publish build one is not working.
    What is the difference and what am I missing ?

    First screen trys to connect server via ajax to get some basic data and shows login page,
    but it looks like kendo style never applied and only shows default textbox as I saw it usually
    when debugging such as I made some error in my code in javascript.

    I suspect cordova and kendo.mobile.min.js version because I upgraded that into as cordova 2.7 and kendo new version,
    but result is same even though I revert those into original verison,cordova 2.2 and keno at that time.

    When I first load app in google play,  I did 2 upgrades without problem,
    however at this time,though spend 2 days to conclude publish build has problem,I'm still stuck.
    Your kind advice would be highly appreciated.

    Thank you in advance.

    Kang



  2. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 07 Aug 2013 Link to this post

    I can narrow down the problem.
    When build setting 'release' mode, kendo .css looks not applied at real device
    regardless of build or publish build.
    Of course,  always working fine in graphite emulator and as well on real device if .apk build in debug mode.
    So I found another thread here to confirm if .css file is well located to add some .css showing
    red box when loading first view.  I added that .css in my main.css and it shows big red box but kendo
    is still not applied , and I'm sure kendo .css has right path.

    I created new project and adds all files to maintain brand new jquery and kendo version
    as well as update require.js into the most current version,but no success.

    Follwoing is head of my index.html, What would be wrong ?
    As shown,I'm using require.js. Could that be a problem ?

      <head>
            <title>SYR Mobile</title>
      <meta charset="utf-8" />
            <script src="cordova.js"></script>
      <script>
       require = undefined;
       define = undefined;
      </script>
      <script data-main="scripts/main" src="scripts/libs/require.js"></script>
            <link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
            <link href="styles/main.css" rel="stylesheet" />
        </head>
          
        <body>
           
              <div id="logon" data-role="view" data-title="로그인"
                  data-before-show="App.ViewModels.Login.beforeShow"
         data-show="App.ViewModels.Login.show"
            data-model="App.ViewModels.Login.Model">
                 
                <div data-role="content" style="padding-top:65px;">

                 <ul data-role="listview" data-style="inset">                   
         <li>

              -- kind of textbox for userid/password and login buitton goes here.    

            </div>

    Follwing is code snippet of main.js.

    document.addEventListener("deviceready", onDeviceReady, false);

    // PhoneGap is ready
    function onDeviceReady() {
    }

    // create app js shims for require.js.
    require.config({
     
        paths: {
            jQuery: "libs/jquery.min",
            kendo:"libs/kendo.mobile.min"
        },
        shim: {
            jQuery :{
                exports: "jQuery"
            },
            kendo:{
                deps: ["jQuery"],
                exports: "kendo"
                }
        }
    });

    // global object to expose
    var App;

    require(["app"], function(application) {
        App = application;
     App.init();
    });

    App.Init creates kendo app as such.

    init : function() {
               
                // init main app
                kendoApp = new kendo.mobile.Application(document.body,{transition: "slide",layout: "syr-default"});
      },

    Any kind of advice would be highly appreciated.

    Kang





  3. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Aug 2013 Link to this post

    Hi Kang,

    There were some problems with Kendo UI and requirejs up until Q2 2013 release (v2013.2.716), so make sure you upgrade to this version of Kendo UI (see Update the Code Libraries in Your Project).
    If you're still having problems after the upgrade, would it be possible to isolate the problem in a really simple app (does not involve credentials etc.) that exhibits the problem and provide steps/instructions what should we observe that is not happening.

    Regards,
    Steve
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  4. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 10 Aug 2013 Link to this post

    Hi Steve,

    Thank you for your reply I've waited for long time.
    That makes me comfortable at least it is not my fault, bcz I spend a week to find what is my fault.
    Since my free subscription is terminated,so no project list is displayed and can't work anymore in graphite.
    I will upgrade subscription and will try as you advisd and will report the result.

    Thank you.

    Kang
  5. YongKoo Kang
    YongKoo Kang avatar
    101 posts
    Member since:
    Jan 2010

    Posted 12 Aug 2013 Link to this post

    Hi Steve,

    I upgraded my subscription and set basic js into new one,looks to solve all problem.
    The relase compile version runs fine on real device,so uploaded in google play.

    But because of version problem, it took me several days to settle makes me sigh.

    Kang





  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 12 Aug 2013 Link to this post

    Hi Kang,

    I'm glad that your project works as expected now. Unfortunately it is hard to predict or mark such issues as "known problems" especially when another 3rd party library is involved. Currently there is no automatic upgrade process for Kendo UI versions in Icenium and we upgrade after some acceptance tests on our end. So if you have Kendo UI license available as well, it might be a good idea to upgrade to their latest internal build whenever you encounter a problem, to see whether it has not been resolved already.

    Thank you for the patience and understanding!

    Regards,
    Steve
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top