onesignal in visual studio 2015 - windows-phone-8.1

I'm trying to use onesignal in a mobile application for windows phone but i can't reach to make it works.
I created an example App with ionic :
ionic start testAppWithOneSignal blank
I created my App on Windows dev center
On onesignal.com my App is configured for Windows Phone 8.1+
In Visual studio, SDK is installed and appears in references for my App
Package.appxmanifest settings are ok (Toast capable : yes , capabilities : "Internet client & server"
My App is associated with windows store
When i launch my App on a windows phone, it works but when i add this code, my App crash when it goes in :
window.plugins.OneSignal.init("XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
{googleProjectNumber: "XXXXXXXXXXXX"},
function(){console.log('oneSignal OK')});
Here the details of my configuration :
Cordova CLI: 5.3.3
Ionic CLI Version: 1.7.11
Ionic App Lib Version: 0.6.5
Visual studio : Community edition 2015
Windows 10

To get a stack trace of the crash you can try changing the Debugger Type to "Script Only" or "Managed Only" under the properties of the WP8.1 project.
There is also a OneSignal-Ionic-Example project you can try to determine if the crash is from your project or if it is another issue. Make sure you're using the WP8.1 branch of the project.
https://github.com/one-signal/OneSignal-Ionic-Example/tree/WP8.1

Related

Run Cocos2d-x Hello World Project on Windows Phone

I want to run cocos2d-x Hello World Project on Windows Phone, but I have no idea how to do it.Currently , I am working on Mac, create cocos2d-x Project and run on iOS Device, its easily achieved. Now, I want to run it on Windows Phone: I am trying some steps but failed:
Copy whole project and paste into windows 10 laptop.
Try to open .sln file from HelloWorld Project in visual studio but this gives Unsupported Project.
Please give me any hint , how to do it.
you can copy or create a new project it doesn't matter what dose matter is that you have to open the proj.win8.1-universal folder in visual studio then open up the *.sln file and you have to have a community version of visual studio which has by default the wp8.1 sdk that allows you to open an develop wp8.1 projects and 2013 or 2015 will do just fin.

Error building Ionic app using WP8 platform on MAC OSX

Happy that the Android .apk file I built using "ionic build android" worked on a Samsung Note phone.
I would like to try the same app but on a different hardware which is my Nokia Lumia Windows Phone 8.
So I added the platform wp8 first and it went well.
$ ionic platform add wp8
Updated the hooks directory to have execute permissions
WARNING: Applications for platform wp8 can not be built on this OS - darwin.
Adding wp8 project...
Running command: /Users/user01/.cordova/lib/npm_cache/cordova-wp8/3.8.2/package/bin/create /Users/user01/repos/myTabs/platforms/wp8 com.ionicframework.mytabs754813 myTabs
Creating Cordova Windows Project:
App Name : myTabs
Namespace : com.ionicframework.mytabs754813
Path : /Users/user01/repos/myTabs/platforms/wp8
Copying necessary files to /Users/user01/repos/myTabs/platforms/wp8
Updating project files
Running command: /Users/user01/repos/myTabs/hooks/after_prepare/010_add_platform_class.js /Users/user01/repos/myTabs
add to body class: platform-wp8
Installing "cordova-plugin-console" for wp8
Installing "cordova-plugin-device" for wp8
Installing "cordova-plugin-splashscreen" for wp8
Installing "cordova-plugin-statusbar" for wp8
Installing "cordova-plugin-whitelist" for wp8
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing "ionic-plugin-keyboard" for wp8
Saving platform to package.json file
A platform already exists - now updating the entry: android platform=android, version=undefined, locator=wp8
However, I got an error when I ran "ionic build wp8".
$ ionic build wp8
Running command: /Users/user01/repos/myTabs/hooks/after_prepare/010_add_platform_class.js /Users/user01/repos/myTabs
add to body class: platform-wp8
Running command: /Users/user01/repos/myTabs/platforms/wp8/cordova/build
ERROR: MSBuild tools not found
ERROR building one of the platforms: Error: /Users/user01/repos/myTabs/platforms/wp8/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/user01/repos/myTabs/platforms/wp8/cordova/build: Command failed with exit code 2
Take a closer look at the logs:
WARNING: Applications for platform wp8 can not be built on this OS - darwin.
It is only possible to build wp8 apps on Windows. Of course, you could use Bootcamp, Parallels or any other virtual machine.

Multi Device Hybrid Apps - Unable to launch Ripple - Chrome not found

After installing the Multi-Device Hybrid Apps (Preview) for Visual Studio CTP2 Extension in Visual Studio 2013 on Windows 7 x64, I am unable to launch a new Multi-Device Hybrid App in Ripple.
Details:
When Installing the Extension I chose not to install Chrome as it was already installed
Opening the solution displays an error message We've detected issues with your system's environment configuration along with Google Chrome - The software is missing from your system. You may have to configure it after installation. A link to the instructions is provided.
On the instruction page the link for chrome is simply to the chrome install page
Chrome is already installed in C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe
Attempting to launch the application with the Ripple - Nexus (Galaxy) setting causes the error Chrome must be installed in order to launch the app in Ripple
I am able to launch the app on both the Android emulator and an Android device
What changes do I need to make to my configuration for the project to launch Chrome?
You are seeing this issue because it is currently hard-coded to look for Chrome in
%PROGRAMFILES%\Google\Chrome\Application\chrome.exe
but you have it installed in your Users folder.
To workaround this, please re-install Chrome to your %Program Files% folder.

Windows 8.1 Store app MAKEPRI build errors for new project

I just wanted to start building apps for Windows Phone but after creating a new project for Windows Phone and hitting the F5 button to run it, I get these errors:
1>MakePri : error 0x80073b0a: Initializing Indexer
1>MakePRI : error 0xdef00042: Invalid qualifier: Scale
Note this is a new project. I haven't modified anything in it. I also tried other templates and none of them ran successfully. The verbose build log was quite large but if you want to, I can post it here. I checked and the the installation of the Visual Studio is full (SDK and everything else is installed.)
I'm using Visual Studio 2013 Update 2 and so far I haven't had any problem with it. The project is targeting Windows Phone 8.1

Error building Windows Phone 8.1 unit test in VS Online

I just set up a Windows Phone 8.1 project using VS 2013 update 2 and added it to a git repo in VS Online.
After configuring a build definition, I tried to run the build but it is erroring out on:
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1864): Could not find SDK "MSTestFramework, Version=12.0".
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1864): Could not find SDK "TestPlatform, Version=12.0
The documentation for VS Online states that the WP8 SDK is installed, but there is no mention of WP8.1. http://www.visualstudio.com/en-us/get-started/hosted-build-controller-vs.aspx#software
Has anybody managed to get a WP 8.1 unit test project to build, and run the tests using VS Online?