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

How to scan devices with Bluetooth plugin in Cordova/Ionic? (iOS)

$
0
0

@umerhassan wrote:

I have an Ionic 3 application. I am looking for a plugin or solution to connect my iPhone to a bluetooth tag reader just to read tag numbers from Tag Reader. I am using iPhone 5S (iOS 12) and tag reader is AllFlex RS420. The tag reader is paired and connected to the phone. The tag reader is being scanned in some other applications like Allflex app or MagicSerialKeys.

I just need a simple bluetooth plugin example for ios devices that can work with my tag reader just to read data (no writing).

I have tried the bluetooth serial plugin. https://ionicframework.com/docs/native/bluetooth-serial

It works fine with android devices but it’s not working with iOS devices. I have downloaded the code from this website. https://medium.com/@maneeshaindrachapa/bluetooth-serial-interface-with-ionic-66c823792166

The initial problem is, the tag reader is not being scanned in the list() method of the plugin for iOS devices and there are no errors in console.

I looked into other plugins as well but they are complicated as they have advertising data and services. I am not sure how services work or how to find a particular service just to read data. For example, the one below: https://ionicframework.com/docs/native/ble

All of the code is in this repository: https://github.com/maneeshaindrachapa/sHome

Please let me know if any other information is required. I am new to Stack overflow. Thank you so much.

Posts: 1

Participants: 1

Read full topic


Editing a plugin.

$
0
0

@JohnWayyyne wrote:

What am I trying to do?

I am building a camera app with ionic and need to record video. I have the preview setup in the app correctly with a simple record button on top. I want to add video recording function to the plugin and being able to call CameraPreview.startRecording and CameraPreview.stopRecording .

What I have done?

Added video recording functionality to the plugin for the android platform. I added the exec functions in CameraPreview.js and the function signatures in CameraPreview.d.ts .

What is going wrong?

In my home.page.ts from my project, I am trying to call this.cameraPreview.startRecording() and this.cameraPreview.stopRecording() but when I run ionic cordova run android I get the following error:

ERROR in src/app/home/home.page.ts:90:32 - error TS2339: Property 'startRecording' does not exist on type 'CameraPreview'.

90             this.cameraPreview.startRecording();
                                  ~~~~~~~~~~~~~~
src/app/home/home.page.ts:92:32 - errorgn TS2339: Property 'stopRecording' does not exist on type 'CameraPreview'.

92             this.cameraPreview.stopRecording();
                                  ~~~~~~~~~~~~~

[ERROR] An error occurred while running subprocess ng.
        
        ng run app:ionic-cordova-build --platform=android exited with exit code 1.

What have I tried so far?

  • removing and adding the android platform to recompile plugin. The plugin is getting re-compiled (checked this by adding a Log.d() function call and running adb logcat to find it). So the code is being added.
  • running npm install after editing plugin
  • making the changes to the plugin in the node_modules folder within my ionic project
  • adding the plugin directly by copying the plugin folder to a different directory and then adding the plugin via the copied plugin
  • a variety of other things I can’t remember

Help please?

Let me know if you want to see any of the files I mentioned.

Posts: 1

Participants: 1

Read full topic

How to integrate native app code in ionic1 codova project?

$
0
0

@sankar82 wrote:

I have AR (Augmented reality) demo app in native code both iOS and Android. I want to integrate this app in my ionic cordova project. My Ionic project is build in Ionic v1 with Cordova and Angular 1.5.3. As I’m new to ionic development I would seek proper guidance and help in this forum. Attached my ionic info.

Thanks in advance.

Posts: 1

Participants: 1

Read full topic

[ERROR] ng has unexpectedly closed (exit code 127)

$
0
0

@Irina26 wrote:

When I enter ionic serve, I get this error message

ng.cmd run app:serve --host=localhost --port=8100
[ERROR] ng has unexpectedly closed (exit code 127).

Posts: 1

Participants: 1

Read full topic

Job search pwa app developing

$
0
0

@zauberer12 wrote:

We looking for a remote developer or a team for job search pwa app developing (ionic+firebase+stripe).

The set of app features for users is quite simple:

  • authorization / registration of employers and employees,

  • employers projects creating (tasks for which employees will be required),

  • professional profiles of employees adding,

  • employees search + filter,

  • dialogs and notifications for registered users,

  • billing and payments (Stripe).

A more detailed task description will be discussed with current developer.

We like variant of using the already existed template (it is closest to what we would like to get as a result) - https://market.ionicframework.com/themes/urban-clap-clone-clapapp-partners

From the developer we expect:

  • proven experience in java, Ionic 4, Angular 7, firebase and git (we would like a long-term cooperation in the project support),

  • the ability to think and propose analytically, not just execute commands sequentially (we don’t need a superman, but we expect to find a developer, who will be ready to do everything to be proud of his/her work.

In general, we are ready to consider any alternative implementation ideas. The key selection criteria will be the development period of the application, as well as the possibility of its subsequent upgrade and support.

Posts: 1

Participants: 1

Read full topic

NavigateRoot doesn't work

$
0
0

@joker84a wrote:

Hi
I’m tring to use the method navigateRoot from NavController, but it doesn’t set the page properly.

I’have tried to create a new app to check if it works, and there is no problem, but when I run it on my app it doesn’t work.

Is there any conflict with other package ?

Posts: 1

Participants: 1

Read full topic

Error when executing : ionic cordova run android

$
0
0

@luiscontrerasdo wrote:

I’m trying to use genymotion for testing ionic apps, but when I execute : ionic cordova run android, I get the following result:

BUILD SUCCESSFUL in 10s
42 actionable tasks: 42 up-to-date
Built the following apk(s):
C:\Users\lc\Documents\IONIC\hola-mundo\platforms\android\app\build\outputs\apk\debug\app-debug.apk

native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk
[native-run] No hardware devices found, attempting emulator…
[native-run] ERR_NO_TARGET: No targets devices/emulators available. Cannot create AVD because there is no suitable API installation. Use --sdk-info to reveal missing packages and other issues.
[ERROR] An error occurred while running subprocess native-run.

    native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-d... exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

Any idea on this problem ?

Posts: 1

Participants: 1

Read full topic

Ionic tabsmenu keep showing every time we push or setroot to tabspage


backButtonSubscription not working

$
0
0

@salomon022 wrote:

hi,
help me in this.

import { Platform } from '@ionic/angular';
  constructor(
    private platform: Platform,
  ){
    this.backButtonSubscription = this.platform.backButton.subscribe(() => {
      alert('lll');
     });
  }


ngOnDestroy()
 {
    this.backButtonSubscription.unsubscribe();
   }

Posts: 1

Participants: 1

Read full topic

Html content in notification message

$
0
0

@Harikag wrote:

Hi, I am able to get fcm notification messages in my app. but My message consists of HTML text like below example:

<h1><b>This is test Notification.</b><br> Regarding Html content in FCm Message</h1>

SO I need to get a result like

This is test Notification.
Regarding Html content in FCm Message

So please help me.

Posts: 1

Participants: 1

Read full topic

I use sidemenu and tab in same app but while i tried to hide side menu menu item depend on use role

$
0
0

@flycoders_sourav wrote:

I use sidemenu and tab in same app but while i tried to hide side menu. menu item depend on user role.
but am not able to do it…
I tired to used menuCtrl but still not working please help me out.
Thanks

Posts: 1

Participants: 1

Read full topic

Error when creating new project v5.2.3 (RESOLVED)

$
0
0

@DeanCMSSystems wrote:

ionic@5.2.3

ionic start driver blank

ERROR:

npm.cmd i
npm ERR! Unexpected end of JSON input while parsing near ‘…ndencies":{“should”:"’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dean\AppData\Roaming\npm-cache_logs\2019-08-05T07_23_15_411Z-debug.log
[ERROR] An error occurred while running subprocess npm.

    npm.cmd i exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

Posts: 1

Participants: 1

Read full topic

BLE scan and connect

How to implement google cloud vision ocr in ionic 3

$
0
0

@krishna12 wrote:

How to implement google cloud vision ocr in ionic 3 to identify text in image uploaded ? Found a github repo to identify text from image. Tried this project with ionic3 Upload image and texts gets extract from the image and tells whether the given keyworks are present or not.below code not working while capturing the image and identifying the text from the image and show highlighted text from identified text .

cloned and tried by ionic serve gives a error access-config file not found which has google could vision api in it. created a access-config file and put google vision api as access-config.ts

export constant access-config{ VISION_API_KEY:‘api_key’

}

but failed capturing the image and get text from the image .

Can someone help me work on this to get work .

Posts: 1

Participants: 1

Read full topic

Does Ionic native audio support sound balance?


Ionic 4 - Fixed content work differently on ios / android?

$
0
0

@Xtalandier wrote:

I want a fixed content that is behind a scroll content. For this goal, the HTML looks like

<ion-content>
  <div slot="fixed" class="header-fixed">
    <h1>This header is fixed</h1>
  </div>
  <div class="content-on-top">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      Proin sit amet tristique ex. Aenean bibendum rutrum sollicitudin.
  </div>
</ion-content>

and this is the scss

.header-fixed{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 200px;
  background: red;
  z-index: 9;
}

.content-on-top{
  width: 80vw;
  margin-left:10vw;
  margin-top: 100px;
  background: blue; 
  height: 150vh;
  position: relative;
  z-index: 99;
}

The first image is on android and work very well

But on ios, the fixed content is already on top…

Any advices ?

Posts: 1

Participants: 1

Read full topic

Cannot find plugin.xml for "cordova-plugin-ionic"

$
0
0

@OliverPrimo wrote:

Hello Everyone,

I am trying to add android platform to my project with command ionic cordova platform add android but it doesn’t install all my plugins to android platform and returns this error.

I don’t know what is wrong. I hope someone can help me with this. Thanks :slight_smile:

Posts: 1

Participants: 1

Read full topic

How to download a image from a server url to photo gallery in ios

$
0
0

@pksquare wrote:

Hi all,
I just want to download a image from server in app and show that image in photo library in ios. Someone please help
I’m using this code:
const fileTransfer: FileTransferObject = this.transfer.create();
fileTransfer.download(‘url’,this.file.documentDirectory + imageName ).then((entry) => {
console.log('download complete: ’ + entry.toURL());
let url=entry.toURL();
// alert(“Download Complete”);
// console.log(‘url is as’,url);
}, (error) => {
alert('error ’ + JSON.stringify(error));
});

Posts: 1

Participants: 1

Read full topic

Ionic 4 with Backendless APIs

$
0
0

@Sandeep776 wrote:

Hii,

I’m using ionic 4 since 1 month. I’m working on the get and post in ionic 4 with the backendless. It’s easy to get data from backendless by using URL but i don’t know how to do with the backendless APIs. I want to get data from backendless on Real time.

So anyone please help how i can get and post data in ionic 4 with backendless APIs.

Thanks in advance

Posts: 3

Participants: 3

Read full topic

What is the use of CordovaLib directory inside platforms\android?

Viewing all 71529 articles
Browse latest View live


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