Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70435 articles
Browse latest View live

Android apk not beign updated

$
0
0

@jaiminpatel0210 wrote:

I am able to see the changes made in ionic application over the browser. But when i generate the android platform using(ionic cordova platform add android) and build to apk, it is not updated. It shows the older version.

Ionic:

Ionic CLI : 6.4.1 (C:\Users\lenovo\AppData\Roaming\nvm\v10.16.0\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0

Capacitor:

Capacitor CLI : 2.0.0
@capacitor/core : 2.0.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : none
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 4 other plugins)

Utility:

cordova-res : 0.11.0
native-run : 1.0.0

System:

NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Posts: 1

Participants: 1

Read full topic


Platform Styles and CDN help

$
0
0

@etarom wrote:

Hello
I can’t understand how Platform Styles work, in particular I tried to apply to an ionicv5 angular project with cordova

  <head>
    <meta charset="utf-8">
    <script type='text/javascript' src="core/dist/ionic.js"></script>
    <link rel="stylesheet" href="core/css/ionic.bundle.css">

but the result is very different from

<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css"/>

Ionic Framework CDN seem to provide great layout help on mobile platforms, can anyone give me some clarification?

thanks in advance,
Maurizio

Posts: 1

Participants: 1

Read full topic

Video and Image picker - multiple choice

$
0
0

@kresogalic wrote:

Hello guys, does anyone know what’s the best approach to. have images and videos picker at once? Is there a plugin somewhere?

I am trying to do a take photo or. take video, and also i want to add picker which has multiple choice enabled for videos and images.

Posts: 1

Participants: 1

Read full topic

Iframe button click event

IONIC 6 Alert controller not working as expected

$
0
0

@rahulsharma841990 wrote:

I used ionic AlertController to show the prompt with two radio buttons and one text input and here is my code:

const alert = await this.alertController.create({
		  	header: 'Prompt!',
		  	inputs: [
				{
					name: 'discount_type',
					type: 'radio',
					label: 'Percent',
					value: 'percent',
					checked: true
				},
				{
					name: 'discount_type',
					type: 'radio',
					label: 'Price',
					value: 'price'
				},
				{
					name: 'value',
					id: 'text',
					type: 'text',
					label: 'amount',
					placeholder: 'Placeholder 3'
				},
		  	],
		  	buttons: [
				{
			  		text: 'Cancel',
			  		role: 'cancel',
			  		cssClass: 'secondary',
			  		handler: () => {
						console.log('Confirm Cancel');
			  		}
				}, {
			  		text: 'Ok',
			  		handler: () => {
						console.log('Confirm Ok');
			  		}
				}
		  	]
		});

but it’s showing three radio buttons, can anyone tell me what’s wrong with my code?

image

Posts: 2

Participants: 1

Read full topic

Is it possible to have admob banner shown for every 5 ion-item?

$
0
0

@pdj wrote:

I’m looking for admob plugin…but all the banner admob work on bottom…
is it possible to generate admob banner for every 5 ion-item?

Posts: 1

Participants: 1

Read full topic

Ion-select-option center and change text

$
0
0

@AIBug wrote:

Hello :smiley:

I’m trying to edit this so that the drop down menu is centered, and I would like to be able to change the font and stuff. But no matter what i try, nothing changes it :frowning:
Any ideas?

<div>
    <ion-list lines="none">
      <ion-item>
        <ion-select [(ngModel)]="location" [interfaceOptions]="selectOptions">
          <ion-select-option value="madison">Los Angelos</ion-select-option>
          <ion-select-option value="austin">Austin, TX</ion-select-option>
          <ion-select-option value="chicago">Chicago, IL</ion-select-option>
          <ion-select-option value="seattle">Seattle, WA</ion-select-option>
        </ion-select>
      </ion-item>
    </ion-list>
</div>

Posts: 1

Participants: 1

Read full topic

Ionic v3 when click child , it trigger also parent function

$
0
0

@pdj wrote:

How can I prevent from clicking child’s function

<img src=abc (click)=“clickedC()”/>

when I click img. it call both clickedP and clickedC…
How can I only click child? not calling parent function?

Posts: 1

Participants: 1

Read full topic


Component always on top

$
0
0

@gbbazan wrote:

Hello,
I need to insert in my ionic angular app a page/component that should stay always on front on any other pages of the apps, modals included.

This page is a chat, that could be fullscreen or minimized (by css), when minimized it take a small draggable div on the lower right corner,
the user can continue navigate the App but the component minimized should stay always visible never covered by other components.

Thanks in advance

Posts: 1

Participants: 1

Read full topic

How to update list in Ionic 5 / Angular app using Subscribers & Observables?

$
0
0

@Sweg wrote:

In my Ionic 5 / Angular app, I have the below Conversation & Message models:

export class Conversation {
    constructor(
        public id: string,
        public userId: string,
        public mechanicId: string,
        public messages: Message[]
    ) { }
}

export class Message {
    constructor(
        public id: string,
        public text: string,
        public userId: string,
        public timestamp: Date
    ) { }
}

On Conversation-Detail, I am using the ID of a Conversation to display all Messages within that Conversation:

<ion-virtual-scroll [items]="loadedMessages">
    <ion-item-sliding *virtualItem="let message">
        <h2>{{ message.text}}</h2>
    </ion-item-sliding>
</ion-virtual-scroll>

Conversation-detail.page.ts:

ngOnInit() {
      this.conversationsSub = this.conversationsService
        .getConversation(paramMap.get('conversationId'))
        .subscribe(conversation => {
          this.conversation = conversation;
          this.loadedMessages = this.conversation.messages;
          console.log('Loaded', this.loadedMessages);
          this.form = new FormGroup({
            message: new FormControl(null, {
            })
          });
        });
    });
  }

On Conversation-Detail, I also have a form allowing users to add more Messages to this Conversation:

<form [formGroup]="form">
    <ion-textarea formControlName="message"></ion-textarea>
    <ion-button (click)="onSendMessage()">Send</ion-button>
</form>

Conversation-detail.page.ts:

onSendMessage() {
    this.conversationsService.addMessageToConversation(this.conversation.id, this.form.value.message);
  }

And here is the ConversationsService code:

addMessageToConversation(conversationId: string, message: string) {
    this.getConversationToAddMessage(conversationId).messages.push(this.createMessage(message));
    console.log(this._conversations);
  }

  getConversationToAddMessage(id: string) {
    return this._conversations.getValue().find(conversation => conversation.id === id);
}

private createMessage(message: string): Message {
    return {
      id: Math.random().toString(),
      text: message,
      userId: this.authService.userId,
      timestamp: new Date(Date.now())
    };
  }

If I enter text into the form, click Send navigate away from the Conversation-Detail page, & navigate back, the new message is displayed in the <ion-virtual-scroll>.

However, the <ion-virtual-scroll> isn’t updated if I don’t leave the page.

Can someone please show me how I can update this list without having to leave the page?

I think I may have to use Subscribers & Observables, but I’m not sure how. Thanks a lot in advance, & I can show more code if it will help solve the issue.

Posts: 1

Participants: 1

Read full topic

Cannot find name 'Entry'

$
0
0

@leonardofmed wrote:

I made a simple function to unzip a selected file to a temp folder, check if contains a file with specific extension, then return the path of this file:

1unzipAndCheckKML(zipFilePath:string, extractionPath:string, extractionFolder:string): Promise<Entry> {
2	return this.zip.unzip(zipFilePath, extractionPath+extractionFolder).then(() => {
3		return this.file.listDir(extractionPath, extractionFolder).then(entryList => {
4			console.log(entryList);
5			return entryList.find((fileEntry) => {
6				let fileExtension = fileEntry.name.split('.').pop();
7				if (fileExtension === 'kml') {
8					return fileEntry;
9				}
10			});
11		})			
12	});
13}

The problem I’m facing is that the find function is returning a boolean value!

line 1 -> error TS2304: Cannot find name ‘Entry’.
line 5 -> error TS2345: Argument of type ‘(this: void, fileEntry: Entry) => Entry’ is not assignable to parameter of type ‘(value: Entry, index: number, obj: Entry) => boolean’.
Type ‘Entry’ is not assignable to type ‘boolean’.

If I try to declare the type of arrow function as Entry:
entryList.find((fileEntry): Entry => {
, I get this problem:

Cannot find name ‘Entry’.

If I try to change the iteration method I got this same error.


Zip | File

Posts: 1

Participants: 1

Read full topic

VanillaJS and ionChange

Capturing ionChange without a framework

$
0
0

@seantomas wrote:

Is it not possible to listen to ionChange events in the following fashion when not using a framework?

<ion-range id="range" min="0" max="10" ionChange="alert(event.target.value)"></ion-range>

The only way I can get it to work is like this:

<ion-range id="range" min="0" max="10"></ion-range>
<script>
      document.getElementById('range').addEventListener('ionChange', function (ev) {
          alert(event.target.value);
      });
</script>

Am hoping to avoid having to manually add listeners to all of my components if possible.

Thanks for any help!

Posts: 1

Participants: 1

Read full topic

Ionic 4 side menu not showing on back navigation from another menu

$
0
0

@ammar97s wrote:

Hi, Ionic developers. I have two side menus in my app. The first menu1 is for normal user who don’t need to login. And the other menu2 is for the admin. on menu1 there is an option for admin to login in and navigate to menu2. Which is working perfect. But the problem is that when the admin wants to navigate back to menu1, it does not show any side menu. But when I refresh it works fine. what can be the problem?

app.component.ts leading towards menu1 i.e startmenu
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
this.router.navigate([‘startmenu/maindashboard’]);
});
}
}
on that start menu I have a login button for admin
loginUser() {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
this.authenticationService.authState.subscribe(state => {
if (state) {
this.router.navigate([‘menu/projects’]);
} else {
this.router.navigate([‘login’]);
}
});
});
Now from Projects page I want to navigate on maindashboard by clicking back button of browser.

Posts: 1

Participants: 1

Read full topic

Is my ionic app safe?

$
0
0

@itosoft wrote:

hi it is always my question and worries about
is ionic application secured? is that possible to crack the ionic app and get the inside code or sth like this for example if my code is like this(add a service to my app)

    import { Injectable } from '@angular/core';
    import { HttpClient } from '@angular/common/http';
    import { Observable } from 'rxjs';
    import { map } from 'rxjs/operators';
     
    @Injectable({
      providedIn: 'root'
    })
    export class EncryptionService {
    
      url = 'https://api.amnas....com';
       api-key='......'

      constructor(private http: HttpClient) { }
     
        newcheck(checkid: string ,cost: string,toname: string,tocode: string,passcode: string,date: string,checkfor: string,back: string): {
        return this.http.get(`${this.url}?key=${this.api-key}&checkid=${encodeURI(checkid)}&cost=${encodeURI(cost)}&toname=${encodeURI(toname)}&tocode=${encodeURI(tocode)}&passcode=${encodeURI(passcode)}&date=${encodeURI(date)}&checkfor=${encodeURI(checkfor)}&back=${encodeURI(back)}`);
    }
    
   
    }

is that possible for anyone to crack my export app(apk) and extract api-key?

Posts: 1

Participants: 1

Read full topic


Secured connection between app and server

$
0
0

@itosoft wrote:

hi i try these code to connect my ionic app to apiserver (get)

    import { Injectable } from '@angular/core';
    import { HttpClient } from '@angular/common/http';
    import { Observable } from 'rxjs';
    import { map } from 'rxjs/operators';
     
    @Injectable({
      providedIn: 'root'
    })
    export class EncryptionService {
    
      url = 'https://api.am....com';
       api-key='......'

      constructor(private http: HttpClient) { }
     
        newcheck(checkid: string ,cost: string,toname: string,tocode: string,passcode: string,date: string,checkfor: string,back: string): {
        return this.http.get(`${this.url}?key=${this.api-key}&checkid=${encodeURI(checkid)}&cost=${encodeURI(cost)}&toname=${encodeURI(toname)}&tocode=${encodeURI(tocode)}&passcode=${encodeURI(passcode)}&date=${encodeURI(date)}&checkfor=${encodeURI(checkfor)}&back=${encodeURI(back)}`);
    }
    
   
    }

my API has API key and get data in URL

how can i perform these in the secured way?

for example to prevent someone to listen and monitor transferred data between app and server?
or prevent someone to distract and fake received data by app?

or anything to make this connection secured

Posts: 1

Participants: 1

Read full topic

Ionic v5 - IOS stuck on Slashscreen with loading indicator (works on Android)

$
0
0

@joaolori wrote:

The mobile app is working fine on Android but is getting stuck on Splashscreen showing loading indicator. I am not able to find any issue, a bit of help would be very much appreciated

ionic info

Ionic:

   Ionic CLI                     : 6.1.0 (C:\Users\XXX\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 16 other plugins)

Utility:

   cordova-res : 0.11.0
   native-run  : 0.3.0

System:

   Android SDK Tools : 26.1.1 (C:\Users\XXX\AppData\Local\Android\Sdk)
   NodeJS            : v13.8.0 (C:\Program Files\nodejs\node.exe)
   npm               : 6.13.6
   OS                : Windows 10

cordova plugins ls

cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 6.4.0 "Facebook Connect"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-firebase-analytics 4.2.0 "FirebaseAnalyticsPlugin"
cordova-plugin-firebase-messaging 4.3.0 "FirebaseMessagingPlugin"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.6.4 "SocialSharing"
cordova-sqlite-storage 4.0.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-android-plugin 1.0.2 "cordova-support-android-plugin"
cordova-support-google-services 1.4.0 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"

On my config.xml

    <preference name="WKWebViewOnly" value="true" />
    <preference name="Scheme" value="https" />
    <preference name="MixedContentMode" value="2" />
    <preference name="iosScheme" value="httpsionic" />
    <allow-navigation href="httpsionic://*" />
    <allow-navigation href="http://*/*" />

iOS LOG from XCode

2020-04-10 05:00:00.170670-0700 Social AI[9953:58501] <Warning>: Please set a value for FacebookAutoLogAppEventsEnabled. Set the flag to TRUE if you want to collect app install, app launch and in-app purchase events automatically. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events.
2020-04-10 05:00:00.172378-0700 Social AI[9953:58501] <Warning>: You haven't set a value for FacebookAdvertiserIDCollectionEnabled. Set the flag to TRUE if you want to collect Advertiser ID for better advertising and analytics results. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events.
2020-04-10 05:00:02.086914-0700 Social AI[9953:58501] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/joao/Library/Developer/CoreSimulator/Devices/4B0780FA-57BD-4C5D-9483-7D486400AA54/data/Containers/Data/Application/DAA9F6B5-086D-40F2-A1AE-FB898E78452A/Library/Cookies/com.social.ai.binarycookies
2020-04-10 05:00:02.365964-0700 Social AI[9953:58501] Apache Cordova native platform version 5.1.1 is starting.
2020-04-10 05:00:02.367472-0700 Social AI[9953:58501] Multi-tasking -> Device: YES, App: YES
2020-04-10 05:00:03.741193-0700 Social AI[9953:58501] [CDVTimer][console] 0.434995ms
2020-04-10 05:00:03.743064-0700 Social AI[9953:58501] [CDVTimer][handleopenurl] 0.460982ms
2020-04-10 05:00:03.757038-0700 Social AI[9953:58501] [CDVTimer][intentandnavigationfilter] 12.492895ms
2020-04-10 05:00:03.758941-0700 Social AI[9953:58501] [CDVTimer][gesturehandler] 0.395060ms
2020-04-10 05:00:03.760944-0700 Social AI[9953:58501] Starting Facebook Connect plugin
2020-04-10 05:00:03.762140-0700 Social AI[9953:58501] [CDVTimer][facebookconnectplugin] 1.707077ms
2020-04-10 05:00:08.648467-0700 Social AI[9953:58501] [CDVTimer][file] 170.173049ms
2020-04-10 05:00:08.648894-0700 Social AI[9953:58501] Starting Firebase Analytics plugin
2020-04-10 05:00:10.120471-0700 Social AI[9953:61339] 6.21.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2020-04-10 05:00:12.490027-0700 Social AI[9953:61403] 6.21.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2020-04-10 05:00:12.502290-0700 Social AI[9953:58501] [CDVTimer][firebaseanalytics] 3853.478074ms
2020-04-10 05:00:12.525287-0700 Social AI[9953:58501] [CDVTimer][firebasemessaging] 22.354007ms
2020-04-10 05:00:12.526806-0700 Social AI[9953:58501] CDVIonicKeyboard: resize mode 1
2020-04-10 05:00:12.545412-0700 Social AI[9953:58501] CDVIonicKeyboard: WARNING!!: Keyboard plugin works better with WK
2020-04-10 05:00:12.545865-0700 Social AI[9953:58501] [CDVTimer][cdvionickeyboard] 19.813061ms
2020-04-10 05:00:13.050973-0700 Social A2020-04-10 05:00:13.407828-0700 Social AI[9953:58501] [CDVTimer][splashscreen] 861.564040ms
I[9953:61341] 6.21.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60400000 started
2020-04-10 05:00:13.899837-0700 Social AI[9953:61341] 6.21.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-04-10 05:00:14.123644-0700 Social AI[9953:58501] [CDVTimer][statusbar] 242.972016ms
2020-04-10 05:00:14.168461-0700 Social AI[9953:58501] [CDVTimer][socialsharing] 43.095946ms
2020-04-10 05:00:14.170107-0700 Social AI[9953:58501] [CDVTimer][TotalPluginStartup] 10429.569006ms
2020-04-10 05:00:19.570529-0700 Social AI[9953:58501] WF: === Starting WebFilter logging for process Social AI
2020-04-10 05:00:19.571030-0700 Social AI[9953:58501] WF: _userSettingsForUser : (null)
2020-04-10 05:00:19.571817-0700 Social AI[9953:58501] WF: _WebFilterIsActive returning: NO
2020-04-10 05:00:20.778427-0700 Social AI[9953:58501] FBSDKLog: starting with Graph API v2.4, GET requests for /2812174648865069/model_asset should contain an explicit "fields" parameter
2020-04-10 05:00:43.497779-0700 Social AI[9953:61409] 6.21.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-10 05:00:43.519652-0700 Social AI[9953:61409] 6.21.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2020-04-10 05:00:51.721871-0700 Social AI[9953:61655] 6.21.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-04-10 05:01:33.366768-0700 Social AI[9953:58501] Starting Firebase Messaging plugin 
 [ProcessSuspension] 0x110ca56c0 - ProcessAssertion::processAssertionWasInvalidated()
2020-04-10 05:01:35.491115-0700 Social AI[9953:58501] FB Hybrid app events cannot be enabled, this feature requires WKWebView
2020-04-10 05:01:36.407717-0700 Social AI[9953:58501] [ProcessSuspension] 0x110ca5720 - ProcessAssertion::processAssertionWasInvalidated()
2020-04-10 05:02:04.276395-0700 Social AI[9953:58501] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2020-04-10 05:02:04.718519-0700 Social AI[9953:58501] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

Posts: 1

Participants: 1

Read full topic

Need help for these errors [ERROR] An error occurred while running subprocess npm.&& npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/cordova-lib

$
0
0

@abdulbasitchippa wrote:

ionic start devCart blank
gives error
[ERROR] An error occurred while running subprocess npm.

npm install -g cordova
gives
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/cordova-lib

npm update npm -g
gives this error
npm ERR! code EINTEGRITY

solutions i have tried
npm cache verify
npm cache clean -f
npm config set registry https://registry.npmjs.org/
npm list -g --depth=0
npm install rxjs@6.5.4 tslib@^1.10.0 tslint@^5.0.0
npm install @ionic/app-scripts@latest --save-dev

Posts: 1

Participants: 1

Read full topic

ERR_CLEARTEXT_NOT_PERMITTED Other options?

$
0
0

@helpmelearn wrote:

On Ionic 3.
Use a third party javascript file to process some information on our app.
This file is kind of the in-between for us to access their services.

We were included the file with the apk build (Android).
ClearText bug started to show its head.
Inside the JavaScript file they run location.protocol to know which address to hit.
Not sure why but if its not HTTPS then it uses http for calls.

Started to turn clear text off, not idea.
Round two was to include the javascript file from the https site.
In testing ionic (in a browser) that seemed to start to use the https site.

Today testing and not working.
Still using a script tag to include the Javascript file.
But in the JS location.protocol comes up as FILE. No https and thus cleartext is blocking all requests.
Not sure what options I have to keep clear text on and use this file? Long show is a way to force a JS file to be https? Or to trick it to always use HTTPS?

Thanks

Posts: 1

Participants: 1

Read full topic

Attempting to use typescript definitions for Apple MusicKitJS in Ionic 5

$
0
0

@tbaumer22 wrote:

Hey everyone,

I’m attempting to use Apple’s MusicKitJS framework inside of my Ionic 5 project with Angular. Originally, I attempted to reference the framework from a script tag inside of my index.html file, but I soon realized that Angular can not interact with these (or at least for this instance). Then, I proceeded to find an npm package containing all the TS definitions for Apple’s MusicKitJS: https://www.npmjs.com/package/musickit-typescript

Now, I can’t figure out how to use these definitions with my project after following the instructions. This is the import code I have on a page, and I can’t seem to get it to find the package:

import { MusicKit } from 'musickit-typescript';

If anybody can help me figure out what I’m doing wrong here, it would be very much appreciated.

Thank you!
Tate

Posts: 2

Participants: 2

Read full topic

Viewing all 70435 articles
Browse latest View live