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

Apple rejected my app: UIRequiredDeviceCapabilities key

$
0
0

Hi, I developed an app with ionic 3 and I’m trying to publish it for Android and iOS. With Android the publish process was fast as a lighting bolt without any problem. With iOS the publish process is a pain, they reject my app for this reason:

"Thank you for your response.

Regarding Guideline 2.3 - Performance - Accurate Metadata, we continue to find that your app does not install on iPad

To resolve this issue, it would be appropriate to check the UIRequiredDeviceCapabilities key to verify that it contains only the attributes required for your app features or the attributes that must not be present on the device. Attributes specified by a dictionary should be set to true if they are required and false if they must not be present on the device.

We look forward to reviewing your resubmitted app."

I checked the app info.plist but the key “UIRequiredDeviceCapabilities” is not present and I don’t know how to set it in order to address the issue.

Moreover I tested the app on several ipad simulators without any problem…

There’s anyone with the same issue ?

This is a screenshoot of my info.plist that is created by ionic 3 ios build


File Chooser issues Permission, Downloads Folder

$
0
0

Greetings,

File Chooser plugin works fine, but in some situations it does not:

1- I can choose a file, but it does not get processed. This is due permission was not granted. Choosing a file does not prompt permission!?

*if I take a picture instead, permission prompted will show up. once permission granted, I can go back and choose a file and it will work fine.

2- As permission was granted, choosing a file from what ever folder will work, except if I try from Downloads folder it won’t work. I tested on Huawei Y9 and emulator with API 28 android 9 it did not work. However, I tested on Samsung note 4 it did work !. Both the Y9 and emulator have SD that could be the reason.

*if files were chosen from android app named “Files” there will be no issues.

any solution for this issue? :thinking:

project info:

Ionic:

   Ionic CLI          : 5.1.0 (C:\Users\asalhajri\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.2, (and 15 other plugins)

Utility:

   cordova-res : 0.3.0
   native-run  : 0.2.5

System:

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

Ionic Pro - iOS - Need to make changes in the main.m

$
0
0

Hi All,

I am trying to integrate the razorpay cordova plugin https://github.com/razorpay/razorpay-cordova

As mentioned there, I need to add a line in the main.m file - ```

import <Razorpay/Razorpay-Swift.h>


I am using ionic Pro to build, is it possible to make these changes via some script ?

Ionic react side menu on header bar

$
0
0

Hi, I’m trying Ionic-react and want create a retractable side menu on header bar.


At moment I have only a fixed side menu on all pages(with or without header). How I can get a retractable side menu ? Thanks

Header Component

const Header = () => {
    return (
        <IonHeader>
            <IonToolbar color="primary">
                <IonTitle>App name</IonTitle>
                <IonButtons slot="start">
                    <IonMenuButton menu="main" autoHide={false}  >
                    </IonMenuButton>
                </IonButtons>
            </IonToolbar>
        </IonHeader>
    )
}

export default Header

Side menu component

const SideMenu = () => {
    return (
        <IonMenu side="start" contentId="side" >
            <IonHeader>
                <IonToolbar color="primary">
                    <IonTitle>Start Menu</IonTitle>
                </IonToolbar>
            </IonHeader>
            <IonContent>
                <IonList>
                    <IonItem>Menu Item</IonItem>
                    <IonItem>Menu Item</IonItem>
                    <IonItem>Menu Item</IonItem>
                    <IonItem>Menu Item</IonItem>
                    <IonItem>Menu Item</IonItem>
                </IonList>
            </IonContent>
        </IonMenu>
    )
}
export default withRouter(SideMenu)

App

 const App = () => (
     <Router>
         <IonApp>
             <IonSplitPane contentId="side">
                 <SideMenu />
                <IonPage id="side">
                     <IonRouterOutlet>
                         <Route exact path="/" component={PreSign} />
                         <Route exact path="/login" component={Login} />
                         <Route exact path="/signUp" component={SignUp} />
                         <Route exact path="/restore" component={Restore} />
                         <Route exact path="/home" component={Home} />
                     </IonRouterOutlet>
                 </IonPage>
             </IonSplitPane>
 
         </IonApp>
     </Router>
 );

Don't show file url image with not base64 in IOS

$
0
0

how to show file url images from getPictures in IOS for ionic 4. if anyone know , please help me.

Apple rejected my app: UIRequiredDeviceCapabilities key

$
0
0

You will more than likely have to add them manually, using Apple’s documentation to build out your config.xml so that in the future, those values will propagate. You should be able to manually edit you XCode project and add the required information as well.

I recommend doing it in both places so your work doesn’t disappear if you ever remove and add the plugin again.

What are the best practices to update/upgrade Ionic project?

$
0
0

Hi All,

I created a project about a year ago and kept adding modules/plug-ins. I never intentionally updated or upgraded anything. I updated or upgraded only when I saw error or something.

Are there any recommended practices to keep everything updated to the best working latest modules/plug-ins.

I’ll appreciate any help and guidance I receive on this topic.

Thank you.

exportArchive: requires a provisioning profile with the Push Notifications feature

$
0
0

I am getting this issue of ionic 4 and xcode 10.12.1

Running command: xcodebuild -exportArchive -archivePath Handshek.xcarchive -exportOptionsPlist /Users/kodetra/KodetraTechnologies/Projects/Ionic/handshek-mobile/platforms/ios/exportOptions.plist -exportPath /Users/kodetra/KodetraTechnologies/Projects/Ionic/handshek-mobile/platforms/ios/build/device
2019-06-23 10:17:10.760 xcodebuild[21542:121234] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path ‘/var/folders/4t/zl9fny29647b84ppqk1swcpr0000gn/T/Handshek_2019-06-23_10-17-10.759.xcdistributionlogs’.
error: exportArchive: “Handshek.app” requires a provisioning profile with the Push Notifications feature.

Error Domain=IDEProvisioningErrorDomain Code=9 ““Handshek.app” requires a provisioning profile with the Push Notifications feature.” UserInfo={NSLocalizedDescription=“Handshek.app” requires a provisioning profile with the Push Notifications feature., NSLocalizedRecoverySuggestion=Add a profile to the “provisioningProfiles” dictionary in your Export Options property list.}

**** EXPORT FAILED ****

xcodebuild: Command failed with exit code 70
[ERROR] An error occurred while running subprocess cordova.

Any idea how to fix this issue


Livereload ERR_CLEARTEXT_NOT_PERMITTED

$
0
0

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Updating Dependencies, how and when to do it

$
0
0

Hi Josh,

Thank you so much for the steps. I think, when I created my project about a year ago, I created it using Ionicv3. But, I am not sure. Can you please help me figuring out how I can determine my project’s Ionic version.

Thank you again and I’ll really appreciate any help and guidance that you or anyone on this forum may provide me.

exportArchive: requires a provisioning profile with the Push Notifications feature

$
0
0

Looks like you need to login to the developer portal and setup push notifications. The current provisional profile looks like it is not setup for APNS

exportArchive: requires a provisioning profile with the Push Notifications feature

Webhook payload

$
0
0

Hi,

I just configured an Automation. I configured a webhook so my CI system can be notified when the build is done. However the payload is not what is in the documentation. I am getting:

{"created":"2019-06-23T10:25:07.031526+00:00","environmentName":"Basic Environment","id":6564582}

That is not sufficient for me because I potentially have multiple builds running in parallel and my CI system needs to be able to differentiate between them. I had planned on using the commit SHA that is indicated in the documentation.

Why am I not getting the expected data? What I expected is described here: https://ionicframework.com/docs/appflow/automation/webhooks#webhook-body

With regards to my setup, I am pushing to Appflow. (No Github or Bitbucket integration).

Thanks,

Jesse

Npm install error

$
0
0

hi eveyone, i’m free lancer programmer someone give my his project to publish it but when i run 'npm install' it , it give me these error any one can help?

 Building solution configuration "Release|x64".
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.  [D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sa
ss\build\binding.sln]
Done Building Project "D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED.


Build FAILED.

"D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass\build\binding.sln" (default target) (1) ->
(_src_\libsass target) -> 
  MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Vis
ual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.  [D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-
sass\build\binding.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.57
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\AhmedAlHashmi\\Tasamoh\\Tasamoh\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\AhmedAlHashmi\Tasamoh\Tasamoh\node_modules\node-sass
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Safaa Alshaarri\AppData\Roaming\npm-cache\_logs\2019-06-23T18_30_05_320Z-debug.log

Firebase Database reading data

$
0
0

Hi, i had the same issue, but i want to return the value of snap.val().name instead return false

There’s an error of snaphot when i try to do this.

Do you now another way to obtain the value calling a method of another class? (i try to do MVC model)

I 've tried with a “Promise.resolve”, with “.then” but the value came undefined or like an object.

Thanks for any help!


Firebase App unable to Compile on Android with AAPT error

$
0
0

I had this issue…

My solution was to upgrade to android 8.0.0 and then edited the project properties file to version lock firebase messaging to 17.5.0 and firebase core to 16.0.8.

Was able to build after that.

STEPS:

ionic cordova platform rm android
ionic platform add android@8.0.0

Edit: project.properties file in platforms/android

com.google.firebase:firebase-core:16.0.8
com.google.firebase:firebase-messaging:17.5.0

Common node module folder for multiple ionic projects

Ion-datetime - scroll has too much momentum

$
0
0

Is it possible to make this grip to the selected values more rather than continuing to scroll? i.e. to be more “grippy”.

I have this in an app and the users keep entering the wrong time as it is hard for them to use.
I know it works better if you touch on the time rather than scroll but educating users is hard.

Alternative time picker suggestions welcome also.

White/grey screen bug

Adding custom transitions/custom modal transition

$
0
0

I am also looking for ionic 4 page transitions

Viewing all 230476 articles
Browse latest View live


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