Nativescript angular RadSideDrawer is undefined - ios

I am working on Nativescript Angular and i have a RadSideDrawer for iOS device only. When i install the app, login and click on the button for RadSideDrawer i receive an error that TypeError: sideDrawer.showDrawer is not a function. (In 'sideDrawer.showDrawer()', 'sideDrawer.showDrawer' is undefined) . However when i hit CTRL + S and the app restarts, the RadSideDrawer works fine. Any help is appreciated.
My code structure is similar to this sample project https://play.nativescript.org/?template=play-ng&id=ZyeGeF&v=3

For debugging purposes, force an Angular change detection cycle beforehand. Maybe you are executing the side drawer function before the component is available.
But, could you give us the exact code—or excerpts—in your question so we can better aid you?

Related

Xamarin Forms iOS - App wont load in release mode

I am working on a Xamarin Forms app pointed at iOS, this works fine in debug, and on Android. Though when we are launching in release mode the app opens and closed immediately.
Monitoring the console for the iPhone I am seeing this error:
COSMCtrl _foregroundAppActivity incoming bundle <app name> has nil supplied UUID
Would this be the potential cause? I have a lifecycle class that is async being called which populates the MainPage, but not sure if it is a background thread being fired that is causing this issue like I assume or other potential causes.
There are other errors like:
Advisor: No handle found for currently focused PID
and
Scene FBSceneManager/SceneID:<appname> update failed:
Any help or suggestions appreciated.
Resolved the issue by putting the app to SDK only linking.
Reference: https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/linker?tabs=windows

UnityAds in iOS using wrong game id, and not working

I am using UnityAds in my mobile game, to show a banner and a rewarded video.
In the editor and in Andorid works fine.
However for iOS it doesn't work, i took the logs and i noticed that for iOS is using my android gameid, this i have no idea where it comes from, i searched every file in my project, i never reference the android gameid, just the iOS one.
So it is clearing taking the id not from my initialization but from some sort of cache, anybody has an idea where is taking the gameid from? thanks
Btw
I am using Advertisement package from package manager.
You can open manually Project Folder\ProjectSettings\UnityConnectSettings.asset in text or code editor, then find
UnityAdsSettings:
m_Enabled: 0
m_InitializeOnStartup: 1
m_TestMode: 0
m_IosGameId: <---- THIS ONE
m_AndroidGameId:
m_GameIds: {}
m_GameId:
and edit it

Angular 6 - Chrome in IOS - Router problem

I'm working on an Angular 6 web site and I face a weird problem only on Chrome in IOS (iPad, iPhone).
Each page renders correctly when going directly to each link. But when I click on any of the links inside any page, it generates a NavigationError like these one:
TypeError: Argument 1 ('other') to Node.contains must be an instance of Node
TypeError: Argument 1 ('node') to Node.insertBefore must be an instance of Node
It's really difficult to debug Chrome inside IOS so it's hard to get more information.
My web site is working well on any other browsers and OS, Firefox(windows, linux), Chrome (windows and linux), Safari (ios, osx, windows).
Anyone got an idea where to start looking?
Thank you!
Apparently, the problem is happening only on Google Chrome iOS when this code is present:
let script = window['document'].createElement('script');
script.setAttribute('type', 'text/javascript');
script.setAttribute('src', 'https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1');
window['document'].body.appendChild(script);
window['__onGCastApiAvailable'] = function (isAvailable) { /*Do chromecast initialization*/}
So I added this condition:
if(!navigator.userAgent.match('CriOS'))
Problem resolved.
I really don't know why cast framework is breaking angular routing.

Flutter inspector Crashes when toggle to IOS

I just started learning Flutter so I started a new project, didn't edit it at all. When running the app using the android emulator, everything looks fine, but when I toggle to IOS from Flutter Inspector I get this error
'package: flutter/src/renering/object.dart': Failed Assertion: line 1152 pos12: 'child.parentData !=null': is not true.
Any idea why this is happening?
This is a known issue https://github.com/flutter/flutter/issues/16560
There is no solution or workaround available yet.
Please upvote the initial comment in the issue to raise priority.

Running Haxe from iOS app – hxRunLibrary() error

For a client I've developed an iOS + Android app using Cordova (PhoneGap) for the user interface. Now, as an update to this app, I'm am attempting to add a game that was written in Haxe. Originally the game was written for the Flash target, but I've updated it to work with the C++ targets for Android and iOS.
On Android it was easy to integrate this with the Cordova app using activities (the Haxe part runs as a separate activity), but I am having some trouble achieving a similar result on iOS.
So far I have tried to include all hxcpp generated code in my project (in the same way that NME sets up the XCode project when you do "nme build ios"), and I'm calling hxRunLibrary() from my code when I want the game to run.
The problem is that hxRunLibrary() seems to want to create its own UIApplication instance, which fails with the following error, since my main app is already running an instance:
*** Assertion failure in void UIApplicationInstantiateSingleton(Class)(), /SourceCache/UIKit_Sim/UIKit-2380.17/UIApplication.m:2037
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
I think it might have something to do with SDL, which Haxe uses for graphics. From what I understand SDL needs to run from the main function of the app, which created a conflict with Cocoa that also needs to run from the main function.
Is there any easy way around this? I've looked in the hxcpp sources, but been unable to find the UIApplication related code, or any entry code for SDL.
Perhaps someone could point me in the right direction. Thanks!
Well ,I have googled some information about Haxe . what i understood is that The Haxe will prouduce a completed application for you .that mean it include the main Function . That's why the error is happend .
And you can simulate the problem by invoke UIApplicationMain Function twice .
In my opinion , you have to remove the code about UIApplicationMain from the souce code file produced by Haxe.
cordova has the ability to be integrated as part of a bigger application
ran into the same issue.
http://devgirl.org/2012/11/15/embed-cordovaphonegap-in-your-native-ios-app/
this article will help
you dont actually create a new project instead you embed it in a webview via the ios webview and cordova acts a subview.

Resources