Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228661 articles
Browse latest View live

How do I align the button icon and text to the left for ios action sheet controller?

$
0
0

Here is my code that displays the action sheet controller:

this.actionSheetController.create({
header: 'Select action for ’ + manifestName,
buttons: [
{
text: ‘Send to APOD’,
handler: () => this.SendToApod(manifestId),
icon: ‘send-outline’

            },
            {
                text: 'Send to Unit',
                handler: () => this.SendToUnit(manifestId),
                icon: 'send'

            },
            {
                text: 'Export to TRN',
                handler: () => this.ExportToTrn(manifestId),
                icon: 'document-text-outline'

            },
            {
                text: 'Export to Excel',
                handler: () => this.ExportToExcel(manifestId),
                icon: 'grid-outline'

            },
            {
                text: 'Cancel',
                role: 'cancel',
                icon: 'close-outline'

            }
        ]
    }).then(actionSheetElement => {
        actionSheetElement.present();
    });

My understanding is that I have to modify the ios SASS variable for this ios setting in the src/theme/variables.scss file. I have tried many thing, but my current code looks like this in the variabls.scss file. What am I doing wrong?

.ios {
$action-sheet-ios-text-align: left;
}

No matter what I try, it is still executing the default of ‘center’.


My app has been removed from Google Play

$
0
0

Hello, Good Day!

I have created and uploaded a lending mobile application on Google Play. It has been live for a while now not until this morning, Google Play removed my application on Play Store due to a violation

But I don’t have any idea how to resolve it. It says that I should add the details to app metadata. Can someone help me where and how should I add the info needed?


https://play.google.com/about/restricted-content/financial-services/#!#cryptocurrencies

Thank you :slight_smile:

Cannot find module after installing ionic

$
0
0

Hi all,

Just a quick overview. I have been having a problem all day I have been trying to solve myself but I don’t understand what is happening. But to get past this one problem here is what is happening.

If I run npm install -g @ionic/cli it install ionic like it is supposed to but once I try to access ionic in any way such as ionic --help I get

internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module ‘C:\Windows\System32\node_modules@ionic\cli\bin\ionic’
e[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)e[39m
e[90m at Function.Module._load (internal/modules/cjs/loader.js:862:27)e[39m
e[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)e[39m
e[90m at internal/main/run_main_module.js:17:47e[39m {
code: e[32m’MODULE_NOT_FOUND’e[39m,
requireStack:
}

Once thing I noticed is that it isn’t putting a node_modules folder in C:\Windows\System32\node_modules it puts it in C:\Users%USER%\AppData\Roaming\npm\node_modules

Why is ionic not installing to the right location (if it isn’t) and if it is supposed to put this in both locations how come it doesn’t.

Thanks for the help n advanced I have a very large Ionic app I have been working on and suddenyl I am at a stand still.

Thanks
Darrell

Looking for developer on established project

$
0
0

We have an existing Ionic v4 application which is growing in size and user base. This position would probably be best filled by roughly a junior-level developer who can work US-based hours. Remote is OK. This would be an essentially full-time position. Contract is preferred, but if we find the right person we are open to discussion. Please: no “side-gig”/“side-hustle” developers. If this isn’t something you are going to do full-time, please don’t waste our time.

Our team is small (about 3 people). However, we can offer you stable work, challenges, as well as opportunities for personal and professional growth. We are a distributed team and use Slack, Zoom, Jira and are all based in the US.

Skills/areas of knowledge that are important for a developer:

  • Ionic v4
  • Cordova
  • Angular 7+
  • Promises & Observables (as well as knowing when you might use each)
  • NGXS
  • Git

Skills that would be excellent to also have (but are not required):

  • Laravel / Nginx / MySQL (our back-end stack)
  • Capacitor
  • System ops

Interested parties must be able to show a proficiency with Angular/Ionic. A good example of questions which you should be able to answer without having to consult Google/DDG/etc.

  • Create a new component and register it within the application
  • Describe what Ionic Native is and why you would use it
  • Ability to download a project source repo and run it on a device or emulator
  • Describe what a redux-style store is and why you might use it
  • Describe what component style-scope is and why it matters
  • Write a service which talks to a backend over HTTP
  • Be able to ask questions in regards to new functionality
  • Design components or pages based on designs

Our ideal person would also:

  • Be willing to work “business hours” (e.g. 9-5/M-F)
  • Push back and ask questions about things
  • Be able to drive the development of new features, given requirements

We are willing to commit to people who are committed to us: helping them to grow professionally and personally.

If you are interested, please email: ionic-job-feb-2020@vervecommerce.com.

Please be patient, as we are really busy and it might take a day or two for us to get in touch with you.

Thank you for your time!

'FBSDKCoreKit/FBSDKCoreKit.h' file not found #import

$
0
0

I also have the same problem.
‘FBSDKCoreKit / FBSDKCoreKit.h’ file not found

Ionic:

Ionic CLI : 5.4.14 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.7
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.4.1

Cordova:

Cordova CLI : 8.1.1 (cordova-lib@8.1.0)
Cordova Platforms : android 7.1.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.0, (and 5 other plugins)

Utility:

cordova-res (update available: 0.9.0) : 0.8.1
native-run (update available: 0.3.0) : 0.2.8

System:

NodeJS : v10.16.2 (/usr/local/bin/node)
npm : 6.13.7
OS : macOS Catalina

App production

$
0
0

you can create blank new ionic project by using this command:
ionic start appName blank --spec false
and to build the app you can use:
ionic cordova build android --aot --prod
Make sure you have nodeJS and ionic installed. For more info, you can visit:

My app has been removed from Google Play

How do I align the button icon and text to the left for ios action sheet controller?

$
0
0

Assuming you are talking about Ionic v4, and you have something like this:

And you want something like this:

In your main application styles.scss, you would add something like this:

.left-align-buttons .action-sheet-button-inner.sc-ion-action-sheet-ios {
  justify-content: flex-start;
}

And then here:

this.actionSheetController.create({
    header: 'Select action for ’ + manifestName,
    buttons: [
    //...

Add a line for the custom class:

this.actionSheetController.create({
    header: 'Select action for ’ + manifestName,
    cssClass: 'left-align-buttons',
    buttons: [
    //...

And it will left-align them. You must do it in the main styles.scss file because the component styles elsewhere are scoped. Styles in styles.scss are not scoped to specific components.


Cannot complete ionic start command

$
0
0

I am trying to start a new project with ionic start myApp blank and selecting React. After I press enter, I see this output.

⠦ Downloading and extracting blank starter (100.00%)
events.js:174
throw er; // Unhandled ‘error’ event
^

Error: TAR_BAD_ARCHIVE: Unrecognized archive format
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/warn-mixin.js:19:40)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/unpack.js:188:18)
at Unpack.Parser.on._ (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:82:14)
at Unpack.emit (events.js:194:15)
at Unpack.[emit] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:286:12)
at Unpack.[maybeEnd] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:402:17)
at Unpack.[consumeChunk] (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:434:21)
at Unpack.write (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:365:25)
at Unpack.end (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:479:14)
at IncomingMessage.onend (_stream_readable.js:651:10)
Emitted ‘error’ event at:
at Unpack.onerror (_stream_readable.js:713:12)
at Unpack.emit (events.js:189:13)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/warn-mixin.js:19:12)
at Unpack.warn (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/unpack.js:188:18)
[… lines matching original stack trace …]
at Unpack.write (/usr/local/lib/node_modules/@ionic/cli/node_modules/tar/lib/parse.js:365:25)

I have uninstalled and reinstalled the @ionic/cli package. This behavior also applied to the Angular option as well and other template options. How can I resolve this?

React - Handle Hardware Back Button

$
0
0

I am not sure about React exactly, but I know in Angular we use HostListener with the document:backbutton event like this:

  @HostListener('document:backbutton', ['$event'])
  public backButtonHandler($event) {
    $event.preventDefault();
    // Do back button stuff here.
  }

Looking for developer on established project

$
0
0

Hi @nvahalik

I am interested i your requirement and will be glad to assist you as an Ionic expert.

Email sent please check

Regards
Frank

My app has been removed from Google Play

$
0
0

Nice. I thought it was related to coding or something. Thank you so much :heart_eyes:

[v4] Modal Scrolling?

$
0
0

Well I figured it out, I had to wrap everything that was in the the modal in a content so

<IonModal>
  <IonContent>
    All my fun content!
  </IonContent>
</IonModal>

WiFi Hacked?

$
0
0

Really, You said there a specific WiFi network in your area I’ll refer to as AlienNetwork. if you are thinking for choosing a best internet WiFi or anything. I am giving you the best suggestion for your internet need. I have been working in extenderlinksys.live/ which is a web address you need to copy this link and paste in an another tab. Which gives best internet range service in any corner of your home. Once you need to visit on our webpage, we have experienced team they can guide you for your best.

Can't add Android to Ionic 4 Capacitor app as www is empty


Slider using html css and typescript no ionic or angular component

$
0
0

thanks sir…
i got complete idea

Webworker in ionic react

$
0
0

short: I couldn’t self.importScripts('myclass.js') in a webworker.

Hello,
simple webworkers where one have an extra file that is saved for example in the asset folder and loaded to a webworker during execution, like in the following code, are working just fine.

var worker = new Worker('doWork.js');

worker.addEventListener('message', function(e) {
  console.log('Worker said: ', e.data);
}, false);

worker.postMessage('Hello World'); 

The same goes with “inline” webworkers, where you put your code in a blob and the blob is than loaded by a worker (like described here: https://www.html5rocks.com/de/tutorials/workers/basics/)

What I couldn’t figure out was importint external scripts with importScripts. For example I want to spawn a web worker with new Worker('doWork.js') and inside doWork.js I want to use self.importScripts('myclass.js'). But I couldn’t manage to do this.

Set image as wallpaper from ionic app

$
0
0

Hi, Did you was solved the issue, let me know I am also facing the same issue.

Ionic 5 Browser Support (Sidemenu)

$
0
0

Hi,

what has to be done so that the start template “sidemenu” works on the edge browser. According to the link below, it should work. However, the sidemenu does not appear in fullscreen mode.

Thank you

ionic info:

Ionic:

Ionic CLI : 5.4.16 (C:\Users…\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 5.0.0
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.1.2

Utility:

cordova-res : 0.9.0
native-run : 0.2.9

System:

NodeJS : v12.16.0 (C:\Program Files (x86)\nodejs\node.exe)
npm : 6.13.7
OS : Windows 10

I want to download a file from my rest and save it on download folder

Viewing all 228661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>