{"action":"created","issue":{"url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/11","repository_url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen","labels_url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/11/comments","events_url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/11/events","html_url":"https://github.com/triniwiz/nativescript-splashscreen/issues/11","id":179911042,"number":11,"title":"Blank splash sreen","user":{"login":"abolinhas","id":3245485,"avatar_url":"https://avatars.githubusercontent.com/u/3245485?v=3","gravatar_id":"","url":"https://api.github.com/users/abolinhas","html_url":"https://github.com/abolinhas","followers_url":"https://api.github.com/users/abolinhas/followers","following_url":"https://api.github.com/users/abolinhas/following{/other_user}","gists_url":"https://api.github.com/users/abolinhas/gists{/gist_id}","starred_url":"https://api.github.com/users/abolinhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abolinhas/subscriptions","organizations_url":"https://api.github.com/users/abolinhas/orgs","repos_url":"https://api.github.com/users/abolinhas/repos","events_url":"https://api.github.com/users/abolinhas/events{/privacy}","received_events_url":"https://api.github.com/users/abolinhas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T22:49:28Z","updated_at":"2016-09-28T23:02:10Z","closed_at":null,"body":"Hi\r\nI made all the steps for Android\r\nhttps://www.npmjs.com/package/nativescript-splashscreen#android\r\n\r\nBut I can't make it work, I always get a blank splash sreen\r\n\r\nI use Nativescript 2.3 and my Android version is 6.0.1\r\n\r\nMy code:\r\nAndroidManifest.xml\r\n`\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n\tpackage=\"__PACKAGE__\"\r\n\tandroid:versionCode=\"1\"\r\n\tandroid:versionName=\"1.0\">\r\n\r\n\t<supports-screens\r\n\t\tandroid:smallScreens=\"true\"\r\n\t\tandroid:normalScreens=\"true\"\r\n\t\tandroid:largeScreens=\"true\"\r\n\t\tandroid:xlargeScreens=\"true\"/>\r\n\r\n\t<uses-sdk\r\n\t\tandroid:minSdkVersion=\"17\"\r\n\t\tandroid:targetSdkVersion=\"__APILEVEL__\"/>\r\n\r\n\t<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>\r\n\t<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\r\n\t<uses-permission android:name=\"android.permission.INTERNET\"/>\r\n\r\n\t<application\r\n\t\tandroid:name=\"com.tns.NativeScriptApplication\"\r\n\t\tandroid:allowBackup=\"true\"\r\n\t\tandroid:icon=\"@drawable/icon\"\r\n\t\tandroid:label=\"@string/app_name\"\r\n\t\tandroid:theme=\"@style/AppTheme\" >\r\n\t\t<activity android:name=\"co.fitcom.SplashScreen\" android:noHistory=\"true\">\r\n\t\t<intent-filter>\r\n\t\t<category android:name=\"android.intent.category.LAUNCHER\" />\r\n\t\t<action android:name=\"android.intent.action.MAIN\" />\r\n\t\t</intent-filter>\r\n\t\t</activity>\r\n\t\t<activity\r\n\t\t\tandroid:name=\"com.tns.NativeScriptActivity\"\r\n\t\t\tandroid:label=\"@string/title_activity_kimera\"\r\n\t\t\tandroid:configChanges=\"keyboardHidden|orientation|screenSize\">\r\n\t\t</activity>\r\n\t\t<activity android:name=\"com.tns.ErrorReportActivity\"/>\r\n\t</application>\r\n</manifest>`\r\n\r\nSplashScreen.js\r\n`\"use strict\"\r\ncom.viksaa.sssplash.lib.activity.AwesomeSplash.extend(\"co.fitcom.SplashScreen\", {\r\n    initSplash: function (configSplash) {\r\n        /* you don't need to override every property */\r\n        \r\n        //Customize Circular Reveal\r\n        configSplash.setBackgroundColor(org.nativescript.articamonitor.R.color.md_green_700); //any color you want form colors.xml\r\n        configSplash.setAnimCircularRevealDuration(2000); //int ms\r\n        configSplash.setRevealFlagX(com.viksaa.sssplash.lib.cnst.Flags.REVEAL_RIGHT);  //or Flags.REVEAL_LEFT\r\n        configSplash.setRevealFlagY(com.viksaa.sssplash.lib.cnst.Flags.REVEAL_BOTTOM); //or Flags.REVEAL_TOP\r\n\r\n\r\n        //Choose LOGO OR PATH; if you don't provide String value for path it's logo by default\r\n\r\n        //Customize Logo\r\n        configSplash.setLogoSplash(org.nativescript.articamonitor.R.drawable.splash_logo); //or any other drawable\r\n        configSplash.setAnimLogoSplashDuration(2000); //int ms\r\n        configSplash.setAnimLogoSplashTechnique(com.daimajia.androidanimations.library.Techniques.Bounce); //choose one form Techniques (ref: https://github.com/daimajia/AndroidViewAnimations)\r\n\r\n\r\n\r\n        const title = com.tns.NativeScriptApplication.getInstance().getString(org.nativescript.articamonitor.R.string.splash_title)\r\n        //Customize Title\r\n        configSplash.setTitleSplash(title);\r\n        configSplash.setTitleTextColor(org.nativescript.articamonitor.R.color.md_white);\r\n        configSplash.setTitleTextSize(30);\r\n        configSplash.setAnimTitleDuration(3000); //int ms\r\n        configSplash.setAnimTitleTechnique(com.daimajia.androidanimations.library.Techniques.FlipInX);\r\n        configSplash.setTitleFont(\"app/fonts/RobotoRegular.ttf\"); //provide string to your font located in app/fonts/\r\n\r\n    },\r\n    animationsFinished: function () {\r\n        const intent = new android.content.Intent(com.tns.NativeScriptApplication.getInstance().getApplicationContext(), com.tns.NativeScriptActivity.class)\r\n        intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);\r\n        com.tns.NativeScriptApplication.getInstance().startActivity(intent);\r\n    }\r\n});`\r\n\r\nsplash_settings.xml\r\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<resources>\r\n<string name=\"splash_title\">Artica Monitor</string>\r\n</resources>`\r\n\r\nImage name /App_Resources/Android/drawable/splash_logo.png"},"comment":{"url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/comments/250326507","html_url":"https://github.com/triniwiz/nativescript-splashscreen/issues/11#issuecomment-250326507","issue_url":"https://api.github.com/repos/triniwiz/nativescript-splashscreen/issues/11","id":250326507,"user":{"login":"abolinhas","id":3245485,"avatar_url":"https://avatars.githubusercontent.com/u/3245485?v=3","gravatar_id":"","url":"https://api.github.com/users/abolinhas","html_url":"https://github.com/abolinhas","followers_url":"https://api.github.com/users/abolinhas/followers","following_url":"https://api.github.com/users/abolinhas/following{/other_user}","gists_url":"https://api.github.com/users/abolinhas/gists{/gist_id}","starred_url":"https://api.github.com/users/abolinhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abolinhas/subscriptions","organizations_url":"https://api.github.com/users/abolinhas/orgs","repos_url":"https://api.github.com/users/abolinhas/repos","events_url":"https://api.github.com/users/abolinhas/events{/privacy}","received_events_url":"https://api.github.com/users/abolinhas/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T23:02:10Z","updated_at":"2016-09-28T23:02:10Z","body":"Hi\r\nI get this error \r\ncom.tns.NativeScriptException: \r\nCalling js method animationsFinished failed\r\n\r\nTypeError: Cannot read property 'class' of undefined\r\nFile: \"/data/data/org.nativescript.articamonitor/files/app/SplashScreen.js, line: 33, column: 149\r\n\r\nStackTrace: \r\n\tFrame: function:'com.viksaa.sssplash.lib.activity.AwesomeSplash.extend.animationsFinished', file:'/data/data/org.nativescript.articamonitor/files/app/SplashScreen.js', line: 33, column: 150\r\n\r\n\r\n\tat com.tns.Runtime.callJSMethodNative(Native Method)\r\n\tat com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865)\r\n\tat com.tns.Runtime.callJSMethodImpl(Runtime.java:730)\r\n\tat com.tns.Runtime.callJSMethod(Runtime.java:716)\r\n\tat com.tns.Runtime.callJSMethod(Runtime.java:697)\r\n\tat com.tns.Runtime.callJSMethod(Runtime.java:687)\r\n\tat co.fitcom.SplashScreen.animationsFinished(com.viksaa.sssplash.lib.activity.AwesomeSplash.java)\r\n\tat com.viksaa.sssplash.lib.activity.AwesomeSplash$4.onAnimationEnd(AwesomeSplash.java:214)\r\n\tat com.nineoldandroids.animation.AnimatorSet$AnimatorSetListener.onAnimationEnd(AnimatorSet.java:756)\r\n\tat com.nineoldandroids.animation.ValueAnimator.endAnimation(ValueAnimator.java:1034)\r\n\tat com.nineoldandroids.animation.ValueAnimator.access$900(ValueAnimator.java:43)\r\n\tat com.nineoldandroids.animation.ValueAnimator$AnimationHandler.handleMessage(ValueAnimator.java:669)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:148)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5461)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n"}}
{"actor":{"display_login":"abolinhas"}}