Ionic Pro "App ID already exists in project config" - ionic2

I logged in today and saw that my account was switched to "Ionic Pro". but now I can't see any of my apps.
I found the document linking-an-existing-app where it says that I should run again ionic link, but then I receive the error:
? App ID xxxxxx already exists in project config. Would you like to link a different app?
If I click "yes" it shows my apps from the old Ionic Cloud Dashboard but how do I migrate all my apps to the new dashboard then ? the doc I shared above - doesn't really say. and I'm not using GitHub.
I also tried to re-login, doesn't help.

Related

Django + React App in Azure gives a server error - 500 everytime

I have deployed a Django app to Azure through Github actions to Azure app service. But it gives a Server error 500 everytime. I have configured the static files and react template properly. In the Diagnose tab there's no error is displaying. How can I troubleshoot and find the error or Is there any other things to configure in Azure? I hosted a same copy in Heroku and it works there.
Make sure you are using the below steps:
SCM_DO_BUILD_DURING_DEPLOYMENT=true – With this setting set to true - Kudu will execute build steps on your site during deployment.
DEBUG = 0 - please check (if this can make any change) after adding this config to your configuration.
You need to enable the Detailed error pages in your portal. This may give a detailed log to know why it happened.
Try Adding Application Insights to your App to check the detailed logs
Best practices to deploy your Application
Refer here Link 1 & Link 2

How to view deployed source file in GCP Console(AppEngine Flexible Environment)?

I'm pretty new to the Google Cloud Platform. I have deployed a Python 3 Flask app in AppEngine Flexible Environment using the Google Cloud SDK and the app works fine. I just want to view the source files deployed, in the cloud. Is there any way to view my project files in GCP?
You can view the source files by clicking on tools > debug next to the app version on your versions page
Alternative, you can go to your instances page, click on SSH next to one of the instances and you will enter the debug mode for that specific instance.
This will open a console in your browser and you can start a shell in the container that is running your app, as described here.
PS: apparently this is possible only for the Flexible Environment

Ionic AWS Error

I am attempting to connect my Ionic mobile app to AWS backend and keep getting the same error.
Cannot find module "../aws-exports"
I've checked the node-modules folder and this is missing, but I have no idea what I should put here to fix this error.
The same code is in a lot of files in this app.
const aws_exports = require('../aws-exports').default;
I'm not sure what this code does exactly. If anyone has an experience with Ionic that could help that would be great.
Thanks,
Matthew.
You need to follow the steps in the README. Specifically, the section on Creating AWS Mobile Hub Project. When you init the AWSMobile project, aws-imports is created for you.
P.S. aws-amplify has introduced some changes in the last couple of weeks that cause the ionic starter to not work. Follow these steps to fix the errors.
If you sign into your Amazon console and you go to your Mobile Hub.
https://console.aws.amazon.com/mobilehub/home#/
You can click on your project and it will return the ID in the URL as follows:
https://console.aws.amazon.com/mobilehub/home#/YOUR_ID_HERE/build
You can then run the following command:
awsmobile init <mobile-hub-project-id>
The AWS Mobile Hub scripts should then fetch all relative dependencies and make the appropriate installations to rectify the issue.

Ionic.io 2, Apple Application Loader, Missing Code-Signing Certificate

I'm using Ionic.io to build an Ionic 2 project and generate an .ipa (for upload to Apple's TestFlight).
When I try to upload my development .ipa file using Apple Application Uploader I get the following error:
Invalid Provisioning Profile. The provisioning profile included in the
bundle xxx.xxx.xxxx [Payload/xxx.app] is invalid. [Missing
code-signing certificate]. A Distribution Provisioning profile should
be used when submitting apps to the App Store. For more information,
visit the iOS Developer Portal."
The .ipa file is being generated by ionic.io
Ionic.io security profiles and certificates have been created as per instructions here (have tried on both Windows and Mac):
http://docs.ionic.io/services/profiles/
I've reviewed the document many times and have created keys multiple times (in case something was missed).
I'm building development with the following command. My understanding is we don't want to use "--release" because that's only for the production profile. In fact, the ionic.io package fails to build if this parameter is specified for dev.
ionic package build ios --profile dev
Push notifications are not enabled.
I posted this to the Ionic2 forum too but there has been no resolution.
Has anyone got this to work or have any ideas?
You need a mac to sign your app with a Provisioning Profile
First Build your app
ionic build ios
Then Open your app with Xcode. you can find the the project in your xcode project
ionicProject > platforms > iOS > ionicProject.xcodeproj
You need to make sure your Xcode account is setup
Click on Xcode > Preferences... > click on the plus sign
once your account is linked and you have downloed all your Provisioning profiles you can click on your project on the left
and under General you can add your Provisioning Profile below signing
This answer adds additional detail to LeRoy's answer. Because ionic.io is currently broken, the work around is to use a Mac to generate the .ipa. Note that this successfully generates a "debug" .ipa. But the steps should be similar to generate a release .ipa.
Needed a mac in a hurry so signed up for a macincloud.com account which came pre-installed with Xcode version 8.2.1.
Setup iOS security profiles as per ionic.io documentation here: http://docs.ionic.io/services/profiles/. The documentation steps are clear. I followed all steps including adding profiles to ionic.io. I was able to create using Windows and Mac. Ultimately I decided to use the Mac generated security profiles (but I don't think this mattered).
Copied my entire Ionic 2 project to the Mac.
Ran on cmd line: ionic resources
For safety, ran on cmd line: ionic platform remove ios and then ionic platform add ios.
Ran on the cmd line: ionic build ios
This generates an xCode project.
Open Xcode application. Choose open another project and select file: /platforms/ios/[project].xcodeproj
Open Xcode. In preferences > accounts added my apple account and clicked the download button.
Select Generic iOS Device
Select Generic iOS Device
In project settings > Targets > General tab: checked Automatically manage signing and selected my profile from drop down. Sometimes I had to check/uncheck this to force it to work.
Xcode complained about a signing mismatch. In project settings > Targets > Build Settings tab: change Code Signing Identity to iOS Developer. Sometimes I had to add/remove the ios platform again to get around this error.
Xcode menu Product > Archive. Followed prompts to upload to iTunes.

SharePoint-hosted Task pane app not authenticating

Summary:
I have an Office 365 E3 account where I'm trying to deploy a Word task pane app that will read some SharePoint list data. Right now, I'm just trying to get the task pane app to load, however, it shows the Office 365 login page (in the pane) but does not do anything after clicking Login.
Details:
I went through the instructions provided here:
http://msdn.microsoft.com/en-us/library/office/fp179815.aspx
Basically, I create an App for SharePoint configured as SharePoint-hosted, then in the same project, added an App for Office (Task Pane App for Word only). The SharePoint app also has a custom document library.
I am able to install the app to my App Catalog, and it correctly shows up in Site Contents where I see it being provisioned to the app web. I can also launch Word 2013 with the Trusted App Catalog configured correctly, and I am able to see my Task Pane App and insert it. When I click Insert, it loads it but prompts for credentials.
I am using the same credentials all throughout this exercise so by virtue of being able to install and deploy the SharePoint app, you can trust that I'm providing the right credentials.
It also appears the custom document library is never created - I wonder if both suffer from the same underlying issue.
I encountered the same problem and the solution provided in the answer below did not help.
After some desparation i created a taskpane app using the Napa Cloud App, opened the application in Visual Studio and went looking for differences.
In the Taskpane app manifest.xml file i found the following entries which were missing in my own application manifest:
<AppDomains>
<AppDomain>https://login.microsoftonline-int.com</AppDomain>
<AppDomain>https://login.microsoftonline.com</AppDomain>
</AppDomains>
This solved my problem and cured one horrible friday.
I was able to get this to work. It turns out doing a Deploy from Visual Studio (whether you right-clicked Deploy or F5-debug), the installation of the app isn't enough.
To make it work, I skipped doing a Deploy all together, but instead published my app. I then took the .app file and loaded it in my App Packages folder, and then deployed it from there.
Unfortunately, I don't know the difference between the two, but I'm assuming it has something to do with provisioning the app web for the Office App.