Jump to content

MikeMon

Members
  • Content Count

    129
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MikeMon

  1. MikeMon

    Programmatically Change Properties of a Custom style

    Hi. Thank you for your answer. Your approach is irrelevant to what I am trying to do. What I want to do is change properties of a style in a Stylebook and expect all objects having that style in their stylelookup field to be updated automatically. Currently, as a workaround, I'm recursively checking all objects and their children and looking for TLabels with stylelookup the style that I want, and changing the fill color of the rectangle in the style. There should be a better way, i.e. just change the fill color of the style in the stylebook. This is the code I'm currently using as a workaround: procedure ChangeAllLabelStyles(ChangeToColor: Cardinal); procedure ChangeObjectRecursive(CurrentComponent: TComponent); var i: Integer; begin if CurrentComponent.ClassNameIs('TLabel') and (TLabel(CurrentComponent).StyleLookup = 'RedButtonLabelStyle') then TLabel(CurrentComponent).StylesData['Rectangle1Style.Fill.Color']:= ChangeToColor; for i:= 0 To CurrentComponent.ComponentCount - 1 do ChangeObjectRecursive(CurrentComponent.Components[i]); end; begin ChangeObjectRecursive(Self); end;
  2. I got confirmation from Embarcadero support that storyboard launch screen will be supported in 10.4, including the beta that will be available to Delphi/RAD Studio customers on update subscription.
  3. This is an email I received a couple of days ago. Dear Mike, We greatly value the worldwide developer community, and appreciate your commitment to making a difference in people’s lives through the power of technology. To accommodate developers who may need additional time to update their existing apps on the App Store, the deadline for adhering to the requirements below has been extended to June 30, 2020. Apps for iPhone or iPad must be built with the iOS 13 SDK or later and use an Xcode storyboard to provide the app’s launch screen. iPhone apps must support all iPhone screens and all iPad apps must support all iPad screens. Apps for Apple Watch must be built with the watchOS 6 SDK or later. Apps that authenticate or set up user accounts must support Sign in with Apple if required by guideline 4.8 of the App Store Review Guidelines. Apps in the Kids category must be in full compliance with guideline 1.3 and guideline 5.1.4. of the App Store Review Guidelines. Apps using HTML 5 must be in full compliance with guideline 4.7 sections 4, 5, and 6 of the App Store Review Guidelines. Thank you for your continuing efforts to serve your users during this time. If you have any questions, contact us. Read the App Store Review Guidelines Learn about submitting apps Best regards, Apple Developer Relations The initial deadline was the April 29. So, obviously, we have an issue here with the first and 4th points. Any input would be appreciated.
  4. How come there's nothing in forums about this? How are other Delphi users developing for iOS tackling this? The above solution doesn't feel right.
  5. Hi I've added a file to the deployment manager which is being copied to a specific folder on iOS and Android. When the user runs the app for the first time, I'm copying that file to another folder on the device and then deleting the original file. This is the problem: while using the app, the file is being deleted OK. But every time the app is run again, the file is reappearing. How can I permanently delete a file from a specific folder? Kindly advise
  6. Hi Steve I want to use my approach for files that I want to forcefully overwrite. If I use your approach, I can't overwrite an existing file on the device if it is newer.
  7. Hi After upgrading to Delphi Rio 10.3.3, I have an issue with IBLite licensing on Android devices (haven't checked on iOS). The issue is the following. When a user downloads the app for the first time, it runs perfectly fine. When they update the app (if they have it already installed on their phone), they get the "product INTERBASE is not licensed" exception. In the same way, during development, if I do a "clean install", everything works fine. If I don't I'm getting the same error. Most probably, there is a file on the existing app that is not being overwritten during the update because it is newer then the file on the updated app. The files needed for IBLite are the following: - reg_iblite.txt - ibconfig - admin.ib - license.txt - oss_license_notice.txt - interbase.msg I even changed the date on my PC, modified the files above to have a future datestamp and tried again. Same error. Is there something I'm missing? Kindly advise
  8. I changed my Interbase connection from IBLite to IBTogo. Now, if I run the app without the "-cleaninstall" in the Run parameters, it works fine on the device. If I create a bundle (32 & 64-bit) and upload it to the Google Play Store, I'm getting the same error: "product INTERBASE is not licensed". Have in mind that this is ONLY if the app is already installed and is updating; not when the user is installing it for the first time. I'm out of ideas.
  9. MikeMon

    Android App Bundle Upload

    Hi In the Embarcadero Delphi Rio documentation on how to upload an app bundle to the Google Play Console (http://docwiki.embarcadero.com/RADStudio/Rio/en/Submitting_Your_Android_App_to_Google_Play#Android_App_Bundle_Support), in the "Let Google manage and protect your app signing key (recommended)" section, there is an option for "Let Google create and manage my app signing key (recommended)" option. This option doesn't exist on the Google Play Console. FYI, it is the first time I'm uploading an app bundle, but it is not the first release of my app. What should I do in this case?
  10. MikeMon

    Android App Bundle Upload

    Nevermind. I used the "Export and Upload a key and certificate from a Java Keystore" choice.
  11. Hi Hans. Thank you for your answer. Have you seen Embarcadero's implementation in their documentation below? http://docwiki.embarcadero.com/RADStudio/Rio/en/REST_Client_Library#Accessing_Facebook_API Is that enough to use Facebook functionality in an app? e.g. login with facebook, etc...
  12. Hi Dave. Thank you for your answer. The link you sent doesn't seem to be for Delphi or Firemonkey. Any other links that you might be aware of?
  13. The link https://blog.grijjy.com/2017/01/23/using-facebook-sdk-native-framework-for-ios-and-android-for-social-login-and-more-part-1/ and the GitHub repository https://github.com/grijjy/DelphiSocialFrameworks are 3 years old. Is there a newer way of using the Facebook API with Firemonkey (iOS and Android)?
  14. MikeMon

    iOS Firebase Push Notifications

    Hi Any latest tutorials or links on how to set up Firebase Push notifications on iOS?
  15. MikeMon

    iOS Firebase Push Notifications

    Finally problem solved: Copying the FireDAC.inc file to the project folder and altering it didn't work. However, altering it in the C:\Program Files (x86)\Embarcadero\Studio\xx.0\source\data\FireDAC folder solved the problem. Thank you @Dave Nottage for your valuable assistance.
  16. MikeMon

    iOS Firebase Push Notifications

    Hi Dave After a million trial and errors, I found out that the issue is with TFDPhysSQLiteDriverLink. To replicate the issue, just drop a TFDPhysSQLiteDriverLink in the KastriFree EMBTFCMv2Demo and run it on iOS. No extra code needed. I've also tried the workaround posted by you in RSP-18329. FYI, android has no problem. I'm using Delphi 10.3.3 Enterprise.
  17. MikeMon

    iOS Firebase Push Notifications

    Hi Dave. I'm attaching the log from the XCode Console. Console Log.txt
  18. MikeMon

    iOS Firebase Push Notifications

    No. The first time I run the app, it's prompting me and then hanging. After that it is never prompting; just hanging. The version of the app is not uploaded to the app store yet.
  19. MikeMon

    iOS Firebase Push Notifications

    BTW, the error I'm getting is when I use the latest Firebase SDK 6.14. When I use 6.3 it's compiling fine. When I run the app, it's asking me if I want the app to send me notifications. When I click yes and every time I run the app after that it is hanging. Not sure what I'm missing here.
  20. MikeMon

    iOS Firebase Push Notifications

    Hi Dave Thank you for the information. Following the information you gave, I've set up Firebase for iOS 64-bit. Everything compiles fine (but crashes on launch) without adding -ObjC to the "Options passed to the LD linker". When I add -ObjC to the "Options passed to the LD linker" I'm getting the following error (346 errors in fact) during compilation: [DCC Error] E2597 ld: warning: dwarf DW_FORM_strp (offset=0xFFFFFFDC) is too big in c:\program files (x86)\embarcadero\studio\20.0\lib\iOSDevice64\Release\libibtogo.a(ail.o). Any ideas on how to solve it?
  21. Hi I have an issue with an app crashing on some Android devices. The devices on which the app crashes are some Android 9 devices; although on other Android 9 devices the app works fine. The crash happens ONLY when the app is connected to the internet. When I disable the Wi-Fi, it doesn't crash. To test it, I run the app with the Wi-Fi disabled, it starts up fine. While the app is running I enable the Wi-Fi and the app crashes after a couple of seconds without me doing anything. I've attached the Android log file if anyone could help me point out where the problem is. Tx log.txt
  22. MikeMon

    Android App Crash on Some Devices

    And then there was light!! Dave, this fixed the issue. Thank you very much for all the help!! I added the below line to the <application> tag of the project's AndroidManifest.xml. <uses-library android:name="org.apache.http.legacy" android:required="false" />
×